]> git.lyx.org Git - features.git/commitdiff
Cmake build: QtGui now needed also for filetools.cpp
authorKornel Benko <kornel@lyx.org>
Fri, 13 Mar 2015 13:22:12 +0000 (14:22 +0100)
committerKornel Benko <kornel@lyx.org>
Fri, 13 Mar 2015 13:22:12 +0000 (14:22 +0100)
src/support/CMakeLists.txt
src/support/tests/CMakeLists.txt

index 42a9134ee3ae5bb9b8ed7530b51774cb9abdd117..009132961172349b832fa15a0a35ee924c977b87 100644 (file)
@@ -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})
 
index 70a2ca7534951ef2cc97dc3e955ea456aeda154e..26e7d5c299979ff735f13eca1f1a668901260e17 100644 (file)
@@ -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})