X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=inline;f=src%2Fapps%2FFileFinder%2FGUI%2FCMakeLists.txt;h=186882699bd6a4e11dd280ad61a30db58b6eb7f1;hb=4c0329c5c2690bde28212c89029015a5da4c7e34;hp=56b5db42eab939034fef713301928b53200da9bb;hpb=602faa7b96d4467f127ccd581228ca7245283c32;p=evaf
diff --git a/src/apps/FileFinder/GUI/CMakeLists.txt b/src/apps/FileFinder/GUI/CMakeLists.txt
index 56b5db4..1868826 100644
--- a/src/apps/FileFinder/GUI/CMakeLists.txt
+++ b/src/apps/FileFinder/GUI/CMakeLists.txt
@@ -2,7 +2,7 @@
set(TARGET FileFinderGui)
# Qt modules
-include(${QT_USE_FILE})
+#include(${QT_USE_FILE})
# Include files
include_directories(${eVaf_INCLUDE})
@@ -13,6 +13,8 @@ set(eVaf_LIBRARIES CommonLib PluginsLib GuiLib)
# Source files
set(SRCS
gui.cpp
+ gui.h
+ version.h
)
# Header files for the meta-object compiler
@@ -30,12 +32,14 @@ if(WIN32 AND NOT MINGW)
set(SRCS ${SRCS} version.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_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS} ${RCC_SRCS})
+qt5_use_modules(${TARGET} Core Widgets)
+
target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
install(TARGETS ${TARGET} DESTINATION bin)