From f751329ec1f18269c8a6dbc323dcf643b958516b Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 24 Oct 2024 08:46:29 +0200 Subject: [PATCH 1/2] make library target static --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e32c5a..406304c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ set(CMAKE_AUTOMOC ON) find_package(Qt5 5.12 REQUIRED COMPONENTS Widgets Charts Test REQUIRED) -add_library(smry_appl +add_library(smry_appl STATIC appl/smry_appl.cpp appl/smry_xaxis.cpp appl/xaxis_ticks.cpp From 992e1a4e37ce33f72745acfab7fe84287bab86ea Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 24 Oct 2024 08:46:54 +0200 Subject: [PATCH 2/2] add installation target --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 406304c..a31811d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,3 +83,4 @@ target_link_libraries(scale_yaxis PRIVATE smry_appl Qt5::Test Qt5::Core Qt5::Wid target_link_libraries(smryappl PRIVATE smry_appl Qt5::Test Qt5::Core Qt5::Widgets Qt5::Charts stdc++fs) target_link_libraries(sep_folders PRIVATE smry_appl Qt5::Test Qt5::Core Qt5::Widgets Qt5::Charts stdc++fs) +install(TARGETS qsummary DESTINATION bin)