aboutsummaryrefslogtreecommitdiff
path: root/mpris-plugin/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2023-11-26 21:29:16 -0500
committerGravatar Chris Xiong <chirs241097@gmail.com> 2023-11-26 21:29:16 -0500
commitf7def0d883fa5cab62ef61b40b9f857245be8e6c (patch)
treed29322dd4be6e98c0740ae6df4dc70eb41614a76 /mpris-plugin/CMakeLists.txt
parent60989e52b3f3bc0a95d3e61bd8e59fa4d9b7ab83 (diff)
downloadQMidiPlayer-f7def0d883fa5cab62ef61b40b9f857245be8e6c.tar.xz
Initial Qt 6 port. Many bug fixes.
Diffstat (limited to 'mpris-plugin/CMakeLists.txt')
-rw-r--r--mpris-plugin/CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/mpris-plugin/CMakeLists.txt b/mpris-plugin/CMakeLists.txt
index c0395c0..1366f39 100644
--- a/mpris-plugin/CMakeLists.txt
+++ b/mpris-plugin/CMakeLists.txt
@@ -13,8 +13,6 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
-find_package(Qt5 REQUIRED COMPONENTS DBus)
-
include_directories(${PROJECT_SOURCE_DIR}/include/)
add_library(qmpmpris MODULE
@@ -22,9 +20,9 @@ add_library(qmpmpris MODULE
)
target_link_libraries(qmpmpris
- Qt5::Core
- Qt5::Widgets
- Qt5::DBus
+ Qt${QT_VERSION_MAJOR}::Core
+ Qt${QT_VERSION_MAJOR}::Widgets
+ Qt${QT_VERSION_MAJOR}::DBus
)
install(TARGETS qmpmpris LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/qmidiplayer/)