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.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/mpris-plugin/CMakeLists.txt b/mpris-plugin/CMakeLists.txt
new file mode 100644
index 0000000..c0395c0
--- /dev/null
+++ b/mpris-plugin/CMakeLists.txt
@@ -0,0 +1,30 @@
+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)
+
+find_package(Qt5 REQUIRED COMPONENTS DBus)
+
+include_directories(${PROJECT_SOURCE_DIR}/include/)
+
+add_library(qmpmpris MODULE
+ ${qmpmpris_SOURCES}
+)
+
+target_link_libraries(qmpmpris
+ Qt5::Core
+ Qt5::Widgets
+ Qt5::DBus
+)
+
+install(TARGETS qmpmpris LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/qmidiplayer/)