]> git.lyx.org Git - lyx.git/blob - development/cmake/src/frontends/controllers/CMakeLists.txt
de97a654c1e3965d3700f2dd6fe1b09289719678
[lyx.git] / development / cmake / src / frontends / controllers / 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(controllers)
8
9 file(GLOB controllers_sources ${TOP_SRC_DIR}/src/frontends/controllers/*.C)
10 file(GLOB controllers_headers ${TOP_SRC_DIR}/src/frontends/controllers/*.h)
11
12 lyx_add_msvc_pch(controllers)
13
14 include_directories(${TOP_SRC_DIR}/src/frontends/controllers)
15
16 if(NOT MERGE_FILES)
17         add_library(controllers STATIC ${controllers_sources} ${controllers_headers})
18 else(NOT MERGE_FILES)
19         lyx_merge_files(allinone controllers_sources)
20         add_library(controllers STATIC 
21                                         ${CMAKE_CURRENT_BINARY_DIR}/allinone.h
22                                         ${CMAKE_CURRENT_BINARY_DIR}/allinone_const.C
23                                         ${CMAKE_CURRENT_BINARY_DIR}/allinone_touched.C)
24 endif(NOT MERGE_FILES)
25
26 target_link_libraries(controllers boost_regex boost_filesystem)
27
28 project_source_group("${GROUP_CODE}" controllers_sources controllers_headers)
29