X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=sidebyside;f=src%2Flibs%2FGui%2FCMakeLists.txt;h=eea9014f4915cd1f299aa4f2dde423d7ee56d5f1;hb=0c61450fcffcb36a6e23ca5b083c26543d956084;hp=8821dc1cbf40f2af6141de7ebd8e55bf7c16304f;hpb=6fb7963d523b32158fc3d4b88a933825f8535a0b;p=evaf
diff --git a/src/libs/Gui/CMakeLists.txt b/src/libs/Gui/CMakeLists.txt
index 8821dc1..eea9014 100644
--- a/src/libs/Gui/CMakeLists.txt
+++ b/src/libs/Gui/CMakeLists.txt
@@ -1,9 +1,6 @@
# Name of the target
set(TARGET GuiLib)
-# Qt modules
-include(${QT_USE_FILE})
-
# Needed for exporting/importing symbols
add_definitions(-DGUI_LIBRARY)
@@ -28,10 +25,12 @@ if(WIN32 AND NOT MINGW)
set(SRCS ${SRCS} version.rc)
endif(WIN32 AND NOT MINGW)
-qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
+qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
+qt5_use_modules(${TARGET} Core Widgets)
+
target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
install(TARGETS ${TARGET} DESTINATION bin)