aboutsummaryrefslogtreecommitdiff
path: root/src/qt/CMakeLists.txt
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-06-17 12:31:35 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-06-17 12:31:35 +0200
commit8b6944d4e42dc42b7833a335c8af990e5a5bcc2b (patch)
tree5ab915108f118909391d3b385acd1a93c0ef57e7 /src/qt/CMakeLists.txt
parentfdc648f94ddf4cf2a15fd0c6c3e6e7d72acafc1b (diff)
downloadOFQT-8b6944d4e42dc42b7833a335c8af990e5a5bcc2b.tar.gz
OFQT-8b6944d4e42dc42b7833a335c8af990e5a5bcc2b.zip
add install targets for frontends, link pthread, add CI
Diffstat (limited to 'src/qt/CMakeLists.txt')
-rw-r--r--src/qt/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt
index d0d1eeb..56d16c4 100644
--- a/src/qt/CMakeLists.txt
+++ b/src/qt/CMakeLists.txt
@@ -28,7 +28,12 @@ if(WIN32)
list(APPEND QT_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
endif()
+set(THREADS_PREFER_PTHREAD_FLAG ON)
+find_package(Threads REQUIRED)
+
add_executable(${FRONTEND_NAME} WIN32 ${QT_SOURCES})
target_link_libraries(${FRONTEND_NAME} PRIVATE tvn)
+target_link_libraries(${FRONTEND_NAME} PRIVATE Threads::Threads)
target_link_libraries(${FRONTEND_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
set_property(TARGET ${FRONTEND_NAME} PROPERTY CXX_STANDARD 11)
+install(TARGETS ${FRONTEND_NAME})