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