diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2025-05-17 08:22:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2025-05-17 08:22:13 +0200 |
commit | d033bef1ded739c056243e673a9e3fbb6c57ef24 (patch) | |
tree | 792d228003d6a080efa487a327a54379efd22bf7 /cmake/opentrack-qt.cmake | |
parent | 5f0fef82211aa659a31a4b49308c5ad8779d2a2b (diff) |
fix build on Linux & Apple
Diffstat (limited to 'cmake/opentrack-qt.cmake')
-rw-r--r-- | cmake/opentrack-qt.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake/opentrack-qt.cmake b/cmake/opentrack-qt.cmake index 51d48595..39aa6361 100644 --- a/cmake/opentrack-qt.cmake +++ b/cmake/opentrack-qt.cmake @@ -3,20 +3,20 @@ set(qt-required-components Core Network Widgets LinguistTools Gui) set(qt-optional-components SerialPort) set(qt-imported-targets Qt6::Core Qt6::Gui Qt6::Network Qt6::Widgets) if(APPLE) - list(APPEND qt-required-components "DBus") - list(APPEND qt-optional-components "Multimedia") - list(APPEND qt-imported-targets Qt6::DBus Qt6::Multimedia) + list(APPEND qt-required-components Multimedia) + list(APPEND qt-imported-targets Multimedia) endif() find_package(Qt6 REQUIRED COMPONENTS ${qt-required-components} QUIET) find_package(Qt6 COMPONENTS ${qt-optional-components} QUIET) + if(WIN32) find_package(Qt6Gui REQUIRED COMPONENTS QWindowsIntegrationPlugin) endif() -set(MY_QT_LIBS ${Qt6Core_LIBRARIES} ${Qt6Gui_LIBRARIES} ${Qt6Widgets_LIBRARIES} ${Qt6Network_LIBRARIES}) +set(MY_QT_LIBS Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Network) if(APPLE) - list(APPEND MY_QT_LIBS ${Qt6Multimedia_LIBRARIES} ${Qt6DBus_LIBRARIES}) + list(APPEND MY_QT_LIBS Qt6::Multimedia) endif() function(otr_install_qt_libs) |