aboutsummaryrefslogtreecommitdiff
path: root/mpris-plugin/CMakeLists.txt
blob: 1366f395b07b2bc11589d114871cb9b16043ddfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set(qmpmpris_SOURCES
    qmpmpris.hpp
    qmprisdbusinterface.hpp
    qmpriswrapper.hpp
    qmpmprisimpl.hpp
    qmpmpris.cpp
    qmprisdbusinterface.cpp
    qmpriswrapper.cpp
    qmpmprisimpl.cpp
)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

include_directories(${PROJECT_SOURCE_DIR}/include/)

add_library(qmpmpris MODULE
    ${qmpmpris_SOURCES}
)

target_link_libraries(qmpmpris
    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/)