X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=inline;f=src%2Fapps%2FScosTime%2FCMakeLists.txt;h=e32c9efd4a44967a69bda62e6cde0f580464a780;hb=a81a943bee20df3c7eb34bafb3e3fe878facfe4e;hp=c56fb72c3b576954f2a2458191203978a1c1d4f3;hpb=84f796df7f84e8e13efb68bbe1cb9f5c804c2228;p=evaf
diff --git a/src/apps/ScosTime/CMakeLists.txt b/src/apps/ScosTime/CMakeLists.txt
index c56fb72..e32c9ef 100644
--- a/src/apps/ScosTime/CMakeLists.txt
+++ b/src/apps/ScosTime/CMakeLists.txt
@@ -1,9 +1,6 @@
# Name of the target
set(TARGET ScosTime)
-# Qt modules
-include(${QT_USE_FILE})
-
# Include files
include_directories(${eVaf_INCLUDE})
@@ -30,12 +27,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})
-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)