From 4436f769e652d5f165cc2d455a205593a74024ca Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 23 Apr 2020 16:31:24 +0200 Subject: [PATCH] gui/CMakeLists.txt: use the new Qt stuff. --- gui/CMakeLists.txt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 17e3166..9734e0d 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -5,6 +5,11 @@ project(eosio-keygen-gui DESCRIPTION "Keygenerator for EOSIO (gui)" LANGUAGES CXX) +# Append modules dir +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + +include(QtUtils) + # Qt5 needs MOC,RCC and UIC set( CMAKE_AUTOMOC ON ) set( CMAKE_AUTORCC ON ) @@ -40,8 +45,14 @@ set( PROGRAM_SRC add_executable( ${PROGRAM_EXE} WIN32 ${PROGRAM_SRC} ) # Libraries -find_package( Qt5 COMPONENTS Concurrent Core Widgets REQUIRED ) -target_link_libraries( ${PROGRAM_EXE} Qt5::Concurrent Qt5::Core Qt5::Widgets common ) +target_link_libraries( ${PROGRAM_EXE} common ) + +# QT +qt5_app(TARGET ${PROGRAM_EXE} + SKIP_TRANSLATIONS + MODULES Core Gui Widgets Concurrent + INSTALL_COMPONENT gui +) # -------------------------------- # Install