File: CMakeLists.txt

package info (click to toggle)
kde-runtime 4:4.14.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 24,712 kB
  • ctags: 11,598
  • sloc: cpp: 108,653; ansic: 2,447; perl: 1,580; xml: 793; sh: 378; python: 28; makefile: 13
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})