mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +02:00
gui/CMakeLists.txt: use the new Qt stuff.
This commit is contained in:
parent
bfd254f484
commit
4436f769e6
1 changed files with 13 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue