From f7def0d883fa5cab62ef61b40b9f857245be8e6c Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 26 Nov 2023 21:29:16 -0500 Subject: Initial Qt 6 port. Many bug fixes. --- mpris-plugin/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'mpris-plugin/CMakeLists.txt') 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/) -- cgit v1.2.3