summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-01-23 13:59:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-01 22:47:06 +0100
commit28f193fff2b96bef5a7f36f60718475da82c4e9e (patch)
treef09a9c0e850086aa934176009b4fd52ab0624c0a
parent93d93a7bf5c5804922b15777109c12503149eb4a (diff)
cmake: oops, fix qt library copy logic
-rw-r--r--cmake/opentrack-qt.cmake6
-rw-r--r--tracker-hatire/CMakeLists.txt3
2 files changed, 7 insertions, 2 deletions
diff --git a/cmake/opentrack-qt.cmake b/cmake/opentrack-qt.cmake
index 41bd6291..800e9096 100644
--- a/cmake/opentrack-qt.cmake
+++ b/cmake/opentrack-qt.cmake
@@ -4,7 +4,7 @@ if(WIN32)
endif()
set(qt-required-components Core Network Widgets LinguistTools Gui)
set(qt-optional-components SerialPort)
-set(qt-imported-targets Qt5::Core Qt5::Gui Qt5::Network Qt5::SerialPort Qt5::Widgets)
+set(qt-imported-targets Qt5::Core Qt5::Gui Qt5::Network Qt5::Widgets)
if(APPLE)
list(APPEND qt-required-components "DBus")
list(APPEND qt-optional-components "Multimedia")
@@ -31,7 +31,9 @@ function(otr_install_qt_libs)
endif()
endfunction()
-otr_install_qt_libs()
+if(WIN32 OR APPLE)
+ otr_install_qt_libs()
+endif()
function(otr_qt n)
if(".${${n}-cc}${${n}-cxx}${${n}-hh}" STREQUAL ".")
diff --git a/tracker-hatire/CMakeLists.txt b/tracker-hatire/CMakeLists.txt
index a73a471c..01dd52b9 100644
--- a/tracker-hatire/CMakeLists.txt
+++ b/tracker-hatire/CMakeLists.txt
@@ -2,4 +2,7 @@ if(Qt5SerialPort_FOUND)
otr_module(tracker-hatire)
target_link_libraries(${self} ${Qt5SerialPort_LIBRARIES})
target_include_directories(${self} SYSTEM PUBLIC ${Qt5SerialPort_INCLUDE_DIRS})
+ if (WIN32 OR APPLE)
+ otr_install_lib(Qt5::SerialPort .)
+ endif()
endif()