1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
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)
13 lyx_add_ui_files(dummy_gen_in_ui ${frontend_qt3_UI})
15 QT_WRAP_UI(frontend_qt3 qt3_uic_h qt3_uic_cxx ${frontend_qt3_UI})
17 qt_wrap_cpp(frontend_qt3 qt3_moc ${frontends_qt3_headers})
19 source_group("Uic files" FILES ${frontend_qt3_UI})
21 add_definitions(-DQT_NO_STL)
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})
28 add_library(frontend_qt3 STATIC
29 ${frontends_qt3_sources}
30 ${frontends_qt3_headers}
36 target_link_libraries(frontend_qt3 ${QT_QT_LIBRARY} controllers)
41 target_link_libraries(frontend_qt3 Gdi32)
44 project_source_group("${GROUP_CODE}" frontends_qt3_sources frontends_qt3_headers)
45 source_group("Uic files" FILES ${frontend_qt3_UI})