aboutsummaryrefslogtreecommitdiff
path: root/mpris-plugin/CMakeLists.txt
diff options
context:
space:
mode:
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/)