]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/src/insets/CMakeLists.txt
cmake cosmetics
[lyx.git] / development / cmake / src / insets / CMakeLists.txt
index 4f7fbb746bd7c27ff338924f38d89e5589afffb3..c86faf58d0ed4036265c797c931a79cf21aa6931 100644 (file)
@@ -1,13 +1,28 @@
+# This file is part of LyX, the document processor.
+# Licence details can be found in the file COPYING.
+#
+# Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
+#
+
 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.cpp)
 
-list(REMOVE_ITEM insets_sources ${TOP_SRC_DIR}/src/insets/insettheorem.C)
+lyx_add_msvc_pch(insets)
 
 include_directories(${TOP_SRC_DIR}/src/insets)
 
-add_library(insets STATIC ${insets_sources} ${insets_headers})
+
+if(NOT MERGE_FILES)
+       add_library(insets ${library_type} ${insets_sources} ${insets_headers})
+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)