File: CMakeLists.txt

package info (click to toggle)
kde-runtime 4:17.08.3-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 25,204 kB
  • sloc: cpp: 111,675; ansic: 5,030; perl: 1,579; xml: 793; sh: 407; makefile: 42; python: 28
file content (29 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (5)
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
29
include_directories(${KDE4_KIO_INCLUDES})

set(kde_PART_SRCS
	kdeplatformplugin.cpp
	kiomediastream.cpp
	devicelisting.cpp
)

if(ALSA_FOUND)
   qt4_add_resources(kde_PART_SRCS resources.qrc)
endif(ALSA_FOUND)

kde4_add_plugin(kde ${kde_PART_SRCS})
target_link_libraries(kde ${KDE4_PHONON_LIBS} ${KDE4_KIO_LIBS})

if(ALSA_FOUND)
   target_link_libraries(kde ${ASOUND_LIBRARY})
endif(ALSA_FOUND)

if(NOT WIN32)
   set_target_properties(kde PROPERTIES
                             SKIP_BUILD_RPATH TRUE
                             BUILD_WITH_INSTALL_RPATH TRUE
   )
endif(NOT WIN32)

install(TARGETS kde DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/phonon_platform)
install(FILES phonon.notifyrc DESTINATION ${DATA_INSTALL_DIR}/phonon)
install(FILES phononbackend.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})