From: Kornel Benko Date: Fri, 13 Mar 2015 13:22:12 +0000 (+0100) Subject: Cmake build: QtGui now needed also for filetools.cpp X-Git-Tag: 2.2.0alpha1~1199 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d9c867da19db0bc84abf55df04fd7e4565c7715b;p=features.git Cmake build: QtGui now needed also for filetools.cpp --- diff --git a/src/support/CMakeLists.txt b/src/support/CMakeLists.txt index 42a9134ee3..0091329611 100644 --- a/src/support/CMakeLists.txt +++ b/src/support/CMakeLists.txt @@ -81,11 +81,7 @@ else() endif() set_target_properties(support PROPERTIES FOLDER "applications/LyX") -if(USE_MACOSX_PACKAGING AND Qt5Core_FOUND) - qt_use_modules(support Core Gui) -else() - qt_use_modules(support Core) -endif() +qt_use_modules(support Core Gui) target_link_libraries(support ${Lyx_Boost_Libraries} ${QT_QTCORE_LIBRARY} ${ZLIB_LIBRARY}) diff --git a/src/support/tests/CMakeLists.txt b/src/support/tests/CMakeLists.txt index 70a2ca7534..26e7d5c299 100644 --- a/src/support/tests/CMakeLists.txt +++ b/src/support/tests/CMakeLists.txt @@ -20,6 +20,7 @@ macro(sources _program) if(CYGWIN) target_link_libraries(${_program} shlwapi) endif() + qt_use_modules(${_program} Core Gui) endmacro() file(GLOB test_sources ${TOP_SRC_DIR}/src/support/tests/${LYX_CPP_FILES})