]> git.lyx.org Git - lyx.git/blob - development/cmake/src/frontends/CMakeLists.txt
c8a2ee426d294a8710f3aca3f948d68ec9158e1c
[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(qt4) 
12
13 file(GLOB frontends_sources ${TOP_SRC_DIR}/src/frontends/${LYX_CPP_FILES})
14 file(GLOB frontends_headers ${TOP_SRC_DIR}/src/frontends/${LYX_HPP_FILES})
15
16 lyx_add_msvc_pch(frontends)
17
18
19 if(NOT MERGE_FILES)
20         add_library(frontends ${library_type} ${frontends_sources} ${frontends_headers})
21 else()
22         lyx_const_touched_files(_allinone  frontends_sources)
23         add_library(frontends ${library_type} ${_allinone_files})
24 endif()
25
26 if(Boost_FOUND)
27   target_link_libraries(frontends ${Boost_LIBRARIES})
28 else()
29   target_link_libraries(frontends boost_regex)
30 endif()
31
32 project_source_group("${GROUP_CODE}" frontends_sources frontends_headers)
33