CMake: specific modules for Qt5

This commit is contained in:
Benjamin Piwowarski 2014-03-09 10:24:41 +01:00 committed by Richard Heck
parent 6468cd97e3
commit 2da0d32771
2 changed files with 10 additions and 2 deletions

View File

@ -54,7 +54,11 @@ else()
endif()
set_target_properties(frontend_qt4 PROPERTIES FOLDER "applications/LyX")
qt_use_modules(frontend_qt4 Core Gui Widgets Concurrent)
if(Qt5Core_FOUND AND APPLE)
qt_use_modules(frontend_qt4 Core Gui Widgets Concurrent MacExtras)
else()
qt_use_modules(frontend_qt4 Core Gui Widgets Concurrent)
endif()
target_link_libraries(frontend_qt4
frontends
${QT_QTCORE_LIBRARY}

View File

@ -74,7 +74,11 @@ else()
endif()
set_target_properties(support PROPERTIES FOLDER "applications/LyX")
qt_use_modules(support Core)
if(USE_MACOSX_PACKAGING AND Qt5Core_FOUND)
qt_use_modules(support Core Gui)
else()
qt_use_modules(support Core)
endif()
target_link_libraries(support ${Lyx_Boost_Libraries} ${QT_QTCORE_LIBRARY} ${ZLIB_LIBRARY})