]> git.lyx.org Git - features.git/blob - development/cmake/src/frontends/qt3/CMakeLists.txt
add copyright notice
[features.git] / development / cmake / src / frontends / qt3 / 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(frontend_qt3)
8
9 file(GLOB frontends_qt3_sources ${TOP_SRC_DIR}/src/frontends/qt3/*.C)
10 file(GLOB frontends_qt3_headers ${TOP_SRC_DIR}/src/frontends/qt3/*.h)
11 file(GLOB frontend_qt3_UI       ${TOP_SRC_DIR}/src/frontends/qt3/ui/*.ui)
12
13 lyx_add_ui_files(dummy_gen_in_ui ${frontend_qt3_UI})
14
15 QT_WRAP_UI(frontend_qt3 qt3_uic_h qt3_uic_cxx ${frontend_qt3_UI})
16
17 qt_wrap_cpp(frontend_qt3 qt3_moc ${frontends_qt3_headers})
18
19 source_group("Uic files" FILES ${frontend_qt3_UI})
20
21 add_definitions(-DQT_NO_STL)
22
23 include_directories(    ${QT_INCLUDE_DIR}
24                         ${TOP_SRC_DIR}/src/frontends/qt3
25                         ${TOP_SRC_DIR}/src/frontends/controllers
26                         ${CMAKE_CURRENT_BINARY_DIR})
27
28 add_library(frontend_qt3 STATIC 
29                 ${frontends_qt3_sources} 
30                 ${frontends_qt3_headers} 
31                 ${qt3_moc}
32                 ${qt3_uic_cxx}
33                 ${qt3_uic_h}
34                 )
35
36 target_link_libraries(frontend_qt3 ${QT_QT_LIBRARY}  controllers)
37
38
39
40 if(WIN32)
41         target_link_libraries(frontend_qt3 Gdi32)
42 endif(WIN32)
43
44 project_source_group("${GROUP_CODE}" frontends_qt3_sources frontends_qt3_headers)
45 source_group("Uic files" FILES ${frontend_qt3_UI})
46