X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Fapps%2FScosTime%2FCMakeLists.txt;h=f193dd69d19463d09ca49b311c9680c9dd08ecc4;hb=HEAD;hp=c56fb72c3b576954f2a2458191203978a1c1d4f3;hpb=84f796df7f84e8e13efb68bbe1cb9f5c804c2228;p=evaf diff --git a/src/apps/ScosTime/CMakeLists.txt b/src/apps/ScosTime/CMakeLists.txt index c56fb72..f193dd6 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}) @@ -13,6 +10,9 @@ set(eVaf_LIBRARIES CommonLib PluginsLib GuiLib) # Source files set(SRCS gui.cpp + gui.h + lib.h + version.h ) # Header files for the meta-object compiler @@ -30,12 +30,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)