]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/src/insets/CMakeLists.txt
cmake cosmetics
[lyx.git] / development / cmake / src / insets / CMakeLists.txt
index d65ee9f3f6b69897073d785f207cfe8dd514fea6..c86faf58d0ed4036265c797c931a79cf21aa6931 100644 (file)
@@ -6,10 +6,10 @@
 
 project(insets)
 
-file(GLOB insets_sources ${TOP_SRC_DIR}/src/insets/*.C)
-file(GLOB insets_headers ${TOP_SRC_DIR}/src/insets/*.h)
+file(GLOB insets_sources ${TOP_SRC_DIR}/src/insets/${LYX_CPP_FILES})
+file(GLOB insets_headers ${TOP_SRC_DIR}/src/insets/${LYX_HPP_FILES})
 
-list(REMOVE_ITEM insets_sources ${TOP_SRC_DIR}/src/insets/insettheorem.C)
+list(REMOVE_ITEM insets_sources ${TOP_SRC_DIR}/src/insets/InsetTheorem.cpp)
 
 lyx_add_msvc_pch(insets)
 
@@ -18,10 +18,10 @@ include_directories(${TOP_SRC_DIR}/src/insets)
 
 if(NOT MERGE_FILES)
        add_library(insets ${library_type} ${insets_sources} ${insets_headers})
-else(NOT MERGE_FILES)
-       lyx_const_touched_files(_allinone const_touched_files  insets_sources)
-       add_library(insets ${library_type} ${const_touched_files})
-endif(NOT MERGE_FILES)
+else()
+       lyx_const_touched_files(_allinone  insets_sources)
+       add_library(insets ${library_type} ${_allinone_files})
+endif()
 
 
 project_source_group("${GROUP_CODE}" insets_sources insets_headers)