X-Git-Url: https://vaikene.ee/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fplugins%2FTest%2FCMakeLists.txt;h=f4aa339b5969f2a410a33ad71334265d20100039;hb=0c61450fcffcb36a6e23ca5b083c26543d956084;hp=35393d748260a1514c0b6cccb13c31bd647635a2;hpb=9536caf853c74774aa308854a6c1caaf32435438;p=evaf diff --git a/src/plugins/Test/CMakeLists.txt b/src/plugins/Test/CMakeLists.txt index 35393d7..f4aa339 100644 --- a/src/plugins/Test/CMakeLists.txt +++ b/src/plugins/Test/CMakeLists.txt @@ -1,9 +1,6 @@ # Name of the target set(TARGET Test) -# Qt modules -include(${QT_USE_FILE}) - # Include files include_directories(${eVaf_INCLUDE}) @@ -23,14 +20,16 @@ set(MOC_HDRS ) # Version info resource file for Windows builds -if(WIN32) +if(WIN32 AND NOT MINGW) set(SRCS ${SRCS} version.rc) -endif(WIN32) +endif(WIN32 AND NOT MINGW) -qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS}) +qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS}) add_library(${TARGET} SHARED ${SRCS} ${MOC_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)