X-Git-Url: https://vaikene.ee/gitweb/pswgen10.html?a=blobdiff_plain;f=src%2Fmain%2FGUI%2FCMakeLists.txt;h=cfb011c9750947b4f8f39b75f33ecfb08aa71697;hb=a81a943bee20df3c7eb34bafb3e3fe878facfe4e;hp=367e2f53a1c61cb24b865900a735220b9126d261;hpb=51afea61c3cf72248b2998f6874a354b49ed12ca;p=evaf
diff --git a/src/main/GUI/CMakeLists.txt b/src/main/GUI/CMakeLists.txt
index 367e2f5..cfb011c 100644
--- a/src/main/GUI/CMakeLists.txt
+++ b/src/main/GUI/CMakeLists.txt
@@ -1,10 +1,6 @@
# Name of the target
set(TARGET eVafGUI)
-# Qt modules
-set(QT_USE_QTMAIN TRUE)
-include(${QT_USE_FILE})
-
# Include files
include_directories(${eVaf_INCLUDE})
@@ -33,21 +29,23 @@ set(MOC_HDRS
)
# Resources
-#set(RCCS
-# gui.qrc
-#)
+set(RCCS
+ gui.qrc
+)
# Version info resource file for Windows builds
if(WIN32 AND NOT MINGW)
set(SRCS ${SRCS} version.rc gui.rc)
endif(WIN32 AND NOT MINGW)
-qt4_add_resources(RCC_SRCS ${RCCS})
+qt5_add_resources(RCC_SRCS ${RCCS})
-qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
+qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
add_executable(${TARGET} WIN32 ${SRCS} ${MOC_SRCS} ${RCC_SRCS})
-target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
+qt5_use_modules(${TARGET} Core Widgets)
+
+target_link_libraries(${TARGET} ${eVaf_LIBRARIES})
install(TARGETS ${TARGET} DESTINATION bin)