Debian Codegraph @

src/CMakeLists.txt

raw ◀ ▶
1 Debian patch touch this file
1 project(mediaplayer_src)
2
3 set(MEDIAPLAYER lomiri-mediaplayer-app)
4
5 include_directories(
6 ${CMAKE_BINARY_DIR}
7 ${sdkhelper_SOURCE_DIR}
8 )
9
10 set(SRC
11 mediaplayer.cpp
12 mediaplayer.h
13 main.cpp)
14
15 add_executable(${MEDIAPLAYER} ${SRC})
16
17 target_link_libraries(${MEDIAPLAYER}
18 Qt5::Gui
19 Qt5::Widgets
20 Qt5::Core
21 Qt5::Qml
22 Qt5::Quick
23 )
24
•25 if (ADD_MPRIS)
26 target_link_libraries (${MEDIAPLAYER} Qt5::DBus)
27 target_compile_definitions (${MEDIAPLAYER} PUBLIC ADD_MPRIS)
28 endif ()
29
30 install(TARGETS ${MEDIAPLAYER}
31 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
32 )
33
34 set(QML_DIR qml)
35
36 install(DIRECTORY ${QML_DIR}
37 DESTINATION ${MEDIAPLAYER_DIR}
38 )
39
40 add_subdirectory(qml)