]> git.lyx.org Git - lyx.git/blob - development/cmake/src/frontends/qt4/CMakeLists.txt
use glob instead of lists
[lyx.git] / development / cmake / src / frontends / qt4 / CMakeLists.txt
1 project(frontend_qt4)
2
3
4 file(GLOB frontends_qt4_sources ${TOP_SRC_DIR}/src/frontends/qt4/*.C)
5 file(GLOB frontends_qt4_headers ${TOP_SRC_DIR}/src/frontends/qt4/*.h)
6 file(GLOB frontend_qt4_UI       ${TOP_SRC_DIR}/src/frontends/qt4/ui/*.ui)
7
8
9 lyx_automoc(${frontends_qt4_sources})
10
11 lyx_add_qt4_ui_files(frontends_qt4_sources ${frontend_qt4_UI})
12
13 add_definitions(-DQT3_SUPPORT -DQT_NO_STL)
14
15 include_directories(    ${TOP_SRC_DIR}/src/frontends/qt4 
16                         ${TOP_SRC_DIR}/src/frontends/controllers
17                         ${CMAKE_CURRENT_BINARY_DIR})
18
19 add_library(frontend_qt4 STATIC ${frontends_qt4_sources} ${frontends_qt4_headers})
20
21 target_link_libraries(frontend_qt4 ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} controllers)
22
23 if(WIN32)
24         target_link_libraries(frontend_qt4 Gdi32)
25 endif(WIN32)
26