X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Fapps%2FScosTime%2FCMakeLists.txt;h=e32c9efd4a44967a69bda62e6cde0f580464a780;hb=0c61450fcffcb36a6e23ca5b083c26543d956084;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)