]> git.lyx.org Git - features.git/blobdiff - development/cmake/src/frontends/CMakeLists.txt
cmake build system:
[features.git] / development / cmake / src / frontends / CMakeLists.txt
index 52c565a1808d4297893631e7619c8dc7819485b6..e420e8873499d1b93aa3ba2c278e8dee1903f481 100644 (file)
@@ -17,7 +17,13 @@ file(GLOB frontends_headers ${TOP_SRC_DIR}/src/frontends/*.h)
 
 lyx_add_msvc_pch(frontends)
 
-add_library(frontends STATIC ${frontends_sources} ${frontends_headers})
+
+if(NOT MERGE_FILES)
+       add_library(frontends STATIC ${frontends_sources} ${frontends_headers})
+else(NOT MERGE_FILES)
+       lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/frontends_allinone.C frontends_sources)
+       add_library(frontends STATIC ${CMAKE_CURRENT_BINARY_DIR}/frontends_allinone.C)
+endif(NOT MERGE_FILES)
 
 project_source_group("${GROUP_CODE}" frontends_sources frontends_headers)