]> git.lyx.org Git - lyx.git/blob - development/cmake/src/insets/CMakeLists.txt
cmake build system:
[lyx.git] / development / cmake / src / insets / CMakeLists.txt
1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
3 #
4 # Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
5 #
6
7 project(insets)
8
9 file(GLOB insets_sources ${TOP_SRC_DIR}/src/insets/*.C)
10 file(GLOB insets_headers ${TOP_SRC_DIR}/src/insets/*.h)
11
12 list(REMOVE_ITEM insets_sources ${TOP_SRC_DIR}/src/insets/insettheorem.C)
13
14 lyx_add_msvc_pch(insets)
15
16 include_directories(${TOP_SRC_DIR}/src/insets)
17
18
19 if(NOT MERGE_FILES)
20         add_library(insets STATIC ${insets_sources} ${insets_headers})
21 else(NOT MERGE_FILES)
22         lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/insets_allinone.C insets_sources)
23         add_library(insets STATIC ${CMAKE_CURRENT_BINARY_DIR}/insets_allinone.C)
24 endif(NOT MERGE_FILES)
25
26
27 project_source_group("${GROUP_CODE}" insets_sources insets_headers)
28