From d9c867da19db0bc84abf55df04fd7e4565c7715b Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Fri, 13 Mar 2015 14:22:12 +0100 Subject: [PATCH] Cmake build: QtGui now needed also for filetools.cpp --- src/support/CMakeLists.txt | 6 +----- src/support/tests/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) 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}) -- 2.39.2