1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-19 04:10:03 +02:00
antelope-keygen/gui/CMakeLists.txt
Henrik Hautakoski 3c21e27f45 gui/SearchWindow: Use QFutureWatcher instead of QThread.
By removing the call to QThread::create() that requires version >= 5.11 we can have a lower version as requirement.

This is useful because a lot of systems don't ship with 5.11 as default.
2020-04-10 11:52:58 +02:00

32 lines
726 B
CMake

# Qt5 needs MOC,RCC and UIC
set( CMAKE_AUTOMOC ON )
set( CMAKE_AUTORCC ON )
set( CMAKE_AUTOUIC ON )
# --------------------------------
# Program
# --------------------------------
set( COMPONENT_NAME ${CMAKE_PROJECT_NAME}-gui)
set( PROGRAM_EXE ${COMPONENT_NAME} )
set( PROGRAM_SRC
main.cpp
SearchWindow.cpp
)
add_executable( ${PROGRAM_EXE} ${PROGRAM_SRC} )
# Libraries
find_package( Qt5 5.11 COMPONENTS Concurrent Core Widgets REQUIRED )
target_link_libraries( ${PROGRAM_EXE} Qt5::Concurrent Qt5::Core Qt5::Widgets common )
# --------------------------------
# Install
# --------------------------------
install(TARGETS ${PROGRAM_EXE}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT ${COMPONENT_NAME})