]> git.lyx.org Git - features.git/blobdiff - development/cmake/src/graphics/CMakeLists.txt
cmake build system:
[features.git] / development / cmake / src / graphics / CMakeLists.txt
index fe24c1e25f47070e10f2c8397cdb21d40f9980d6..8f62e4382ae9d3d7c76310e029fdd0e41549f642 100644 (file)
@@ -11,9 +11,15 @@ file(GLOB graphics_headers ${TOP_SRC_DIR}/src/graphics/*.h)
 
 lyx_add_msvc_pch(graphics)
 
+
 include_directories(${TOP_SRC_DIR}/src/graphics)
 
-add_library(graphics STATIC ${graphics_sources} ${graphics_headers})
+if(NOT MERGE_FILES)
+       add_library(graphics STATIC ${graphics_sources} ${graphics_headers})
+else(NOT MERGE_FILES)
+       lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/graphics_allinone.C graphics_sources)
+       add_library(graphics STATIC ${CMAKE_CURRENT_BINARY_DIR}/graphics_allinone.C)
+endif(NOT MERGE_FILES)
 
 project_source_group("${GROUP_CODE}" graphics_sources graphics_headers)