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>
10 file(GLOB frontends_qt4_sources ${TOP_SRC_DIR}/src/frontends/qt4/*.C)
11 file(GLOB frontends_qt4_headers ${TOP_SRC_DIR}/src/frontends/qt4/*.h)
12 file(GLOB frontend_qt4_UI ${TOP_SRC_DIR}/src/frontends/qt4/ui/*.ui)
14 lyx_add_msvc_pch(frontends_qt4)
16 lyx_automoc(${frontends_qt4_sources})
18 lyx_add_ui_files(frontends_qt4_sources ui_files ${frontend_qt4_UI})
25 -DLYX_BUILD_QT4_FRONTEND
30 ${TOP_SRC_DIR}/src/frontends/qt4
31 ${TOP_SRC_DIR}/src/frontends/controllers
32 ${CMAKE_CURRENT_BINARY_DIR})
34 if(MERGE_FILES AND MSVC)
35 lyx_merge_files(${CMAKE_CURRENT_BINARY_DIR}/frontends_qt4_allinone.C frontends_qt4_sources)
36 set(depends_moc_uic ${frontends_qt4_headers} ${ui_files})
37 SET_SOURCE_FILES_PROPERTIES(frontends_qt4_allinone.C PROPERTIES OBJECT_DEPENDS "${depends_moc_uic}")
38 add_library(frontend_qt4 STATIC ${CMAKE_CURRENT_BINARY_DIR}/frontends_qt4_allinone.C ${frontends_qt4_headers} ${ui_files})
39 else(MERGE_FILES AND MSVC)
40 add_library(frontend_qt4 STATIC ${frontends_qt4_sources} ${frontends_qt4_headers} ${ui_files})
41 endif(MERGE_FILES AND MSVC)
43 target_link_libraries(frontend_qt4 ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} controllers)
46 target_link_libraries(frontend_qt4 Gdi32)
49 project_source_group("${GROUP_CODE}" frontends_qt4_sources frontends_qt4_headers)
50 source_group("Uic files" FILES ${frontend_qt4_UI})