X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;f=src%2Flibs%2FGui%2FCMakeLists.txt;h=e973a0adb1392f2abc03c22b1f0df8a20fc70486;hb=4c0329c5c2690bde28212c89029015a5da4c7e34;hp=19fd17239bb3c6e0f44bc419d8cb18609efd0f1e;hpb=78ad6c009b334925675998ae2ab02cc1d6d97e18;p=evaf diff --git a/src/libs/Gui/CMakeLists.txt b/src/libs/Gui/CMakeLists.txt index 19fd172..e973a0a 100644 --- a/src/libs/Gui/CMakeLists.txt +++ b/src/libs/Gui/CMakeLists.txt @@ -1,9 +1,6 @@ # Name of the target set(TARGET GuiLib) -# Qt modules -include(${QT_USE_FILE}) - # Needed for exporting/importing symbols add_definitions(-DGUI_LIBRARY) @@ -15,7 +12,10 @@ set(eVaf_LIBRARIES) # Source files set(SRCS + libgui.h panel.cpp + panel.h + version.h ) # Header files for the meta-object compiler @@ -24,14 +24,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}) +qt5_use_modules(${TARGET} Core Widgets) + target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES}) install(TARGETS ${TARGET} DESTINATION bin)