commit d9c867da19db0bc84abf55df04fd7e4565c7715b
Author: Kornel Benko <[email protected]>
Date: Fri Mar 13 14:22:12 2015 +0100
Cmake build: QtGui now needed also for filetools.cpp
diff --git a/src/support/CMakeLists.txt b/src/support/CMakeLists.txt
index 42a9134..0091329 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 70a2ca7..26e7d5c 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})