mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
CMake: specific modules for Qt5
This commit is contained in:
parent
6468cd97e3
commit
2da0d32771
@ -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}
|
||||
|
@ -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})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user