X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=sidebyside;f=src%2Flibs%2FGui%2FCMakeLists.txt;h=eea9014f4915cd1f299aa4f2dde423d7ee56d5f1;hb=36bd93cf4263b118366b3db2d26e8efb1ac1b690;hp=fab0577247c9ae114afdc4852183a84f18c8cfe3;hpb=5748bd7fdfa26ef2dd56735f2b7f77ad02c16ae0;p=evaf
diff --git a/src/libs/Gui/CMakeLists.txt b/src/libs/Gui/CMakeLists.txt
index fab0577..eea9014 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,23 +12,25 @@ set(eVaf_LIBRARIES)
# Source files
set(SRCS
- window.cpp
+ panel.cpp
)
# Header files for the meta-object compiler
set(MOC_HDRS
- window.h
+ panel.h
)
# 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)