Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 31 Lines | |||||
32 | set(qml_SRCS | 32 | set(qml_SRCS | ||
33 | qml/qmldir | 33 | qml/qmldir | ||
34 | qml/PulseObjectFilterModel.qml | 34 | qml/PulseObjectFilterModel.qml | ||
35 | ) | 35 | ) | ||
36 | 36 | | |||
37 | set_property(SOURCE qml/dbus/osdService.xml APPEND PROPERTY CLASSNAME OsdServiceInterface) | 37 | set_property(SOURCE qml/dbus/osdService.xml APPEND PROPERTY CLASSNAME OsdServiceInterface) | ||
38 | qt5_add_dbus_interface(dbus_SRCS qml/dbus/osdService.xml osdservice) | 38 | qt5_add_dbus_interface(dbus_SRCS qml/dbus/osdService.xml osdservice) | ||
39 | 39 | | |||
40 | if (HAVE_GCONF) | 40 | if (USE_GCONF) | ||
41 | include_directories(${GCONF_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS}) | 41 | include_directories(${GCONF_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS}) | ||
42 | set(cpp_SRCS ${cpp_SRCS} gconfitem.cpp) | 42 | set(cpp_SRCS ${cpp_SRCS} gconfitem.cpp) | ||
43 | endif() | 43 | endif() | ||
44 | 44 | | |||
45 | if (USE_GSETTINGS) | ||||
46 | include_directories(${GIO_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS}) | ||||
47 | set(cpp_SRCS ${cpp_SRCS} gsettingsitem.cpp) | ||||
48 | endif() | ||||
49 | | ||||
45 | add_library(plasma-volume-declarative SHARED ${dbus_SRCS} ${cpp_SRCS} ${qml_SRCS}) | 50 | add_library(plasma-volume-declarative SHARED ${dbus_SRCS} ${cpp_SRCS} ${qml_SRCS}) | ||
46 | target_link_libraries(plasma-volume-declarative | 51 | target_link_libraries(plasma-volume-declarative | ||
47 | Qt5::Core | 52 | Qt5::Core | ||
48 | Qt5::Gui | 53 | Qt5::Gui | ||
49 | Qt5::DBus | 54 | Qt5::DBus | ||
50 | Qt5::Quick | 55 | Qt5::Quick | ||
51 | KF5::GlobalAccel | 56 | KF5::GlobalAccel | ||
52 | Canberra::Canberra | 57 | Canberra::Canberra | ||
53 | ${PULSEAUDIO_LIBRARY} | 58 | ${PULSEAUDIO_LIBRARY} | ||
54 | ${PULSEAUDIO_MAINLOOP_LIBRARY} | 59 | ${PULSEAUDIO_MAINLOOP_LIBRARY} | ||
60 | ${GOBJECT_LIBRARIES} | ||||
55 | ) | 61 | ) | ||
56 | 62 | | |||
57 | if (HAVE_GCONF) | 63 | if (USE_GCONF) | ||
58 | target_link_libraries(plasma-volume-declarative | 64 | target_link_libraries(plasma-volume-declarative | ||
59 | ${GCONF_LDFLAGS} | 65 | ${GCONF_LDFLAGS} | ||
60 | ${GOBJECT_LDFLAGS} | 66 | ) | ||
67 | endif() | ||||
68 | | ||||
69 | if (USE_GSETTINGS) | ||||
70 | target_link_libraries(plasma-volume-declarative | ||||
71 | ${GIO_LIBRARIES} | ||||
72 | GLIB2::GLIB2 | ||||
61 | ) | 73 | ) | ||
62 | endif() | 74 | endif() | ||
63 | 75 | | |||
64 | set(PRIVATE_QML_INSTALL_DIR ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/volume) | 76 | set(PRIVATE_QML_INSTALL_DIR ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/volume) | ||
65 | install(TARGETS plasma-volume-declarative DESTINATION ${PRIVATE_QML_INSTALL_DIR}) | 77 | install(TARGETS plasma-volume-declarative DESTINATION ${PRIVATE_QML_INSTALL_DIR}) | ||
66 | install(FILES ${qml_SRCS} DESTINATION ${PRIVATE_QML_INSTALL_DIR}) | 78 | install(FILES ${qml_SRCS} DESTINATION ${PRIVATE_QML_INSTALL_DIR}) | ||
67 | 79 | | |||
68 | add_subdirectory(kcm) | 80 | add_subdirectory(kcm) |