]> git.lyx.org Git - features.git/blob - development/cmake/src/client/CMakeLists.txt
Kornel
[features.git] / development / cmake / src / client / 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) 2008, Peter Kümmel, <syntheticpp@gmx.net>
5 #                   , Kornel Benko, <Kornel.Benko@berlin.de>
6 #
7
8 project(lyxclient)
9
10 file(GLOB _lyxclient_sources ${TOP_SRC_DIR}/src/client/*.cpp)
11 file(GLOB _lyxclient_headers ${TOP_SRC_DIR}/src/client/*.h)
12 list(REMOVE_ITEM _lyxclient_headers "${TOP_SRC_DIR}/src/client/pch.h")
13
14 include_directories(BEFORE "${TOP_SRC_DIR}/src/client"
15   "${TOP_SRC_DIR}/boost" ${ZLIB_INCLUDE_DIR})
16
17 add_executable(lyxclient ${_lyxclient_sources}}
18   ${_lyxclient_headers})
19
20
21 target_link_libraries(lyxclient
22         support
23         boost_regex
24         ${LIBINTL_LIBRARIES}
25         ${ICONV_LIBRARY}
26         ${QT_QTCORE_LIBRARY}
27         ${QT_QTGUI_LIBRARY}
28         )
29
30 if (ASPELL_FOUND)
31         target_link_libraries(lyxclient ${ASPELL_LIBRARY})
32 endif()
33
34 if (APPLE)
35         target_link_libraries(lyxclient "-framework Carbon")
36 endif()
37
38 install(TARGETS lyxclient DESTINATION bin)
39