2015-09-01 01:05:33 +03:00
|
|
|
add_subdirectory(kfileaudiopreview)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
include_directories(${KDE4_KPARTS_INCLUDES})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(kmediaplayer_LIB_SRCS
|
2015-09-01 01:05:33 +03:00
|
|
|
player.cpp
|
|
|
|
view.cpp
|
|
|
|
kmediaplayeradaptor.cpp
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_library(kmediaplayer ${LIBRARY_TYPE} ${kmediaplayer_LIB_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-10-31 05:10:27 +02:00
|
|
|
target_link_libraries(kmediaplayer PUBLIC
|
|
|
|
${KDE4_KPARTS_LIBS}
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
set_target_properties(kmediaplayer PROPERTIES
|
2015-09-01 01:05:33 +03:00
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
2015-10-31 05:10:27 +02:00
|
|
|
install(
|
|
|
|
TARGETS kmediaplayer
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2015-10-31 05:10:27 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2015-09-01 01:05:33 +03:00
|
|
|
kmediaplayer_export.h
|
|
|
|
player.h
|
|
|
|
view.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/kmediaplayer
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
2015-10-31 05:10:27 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2015-09-01 01:05:33 +03:00
|
|
|
kmediaplayerengine.desktop
|
|
|
|
kmediaplayer.desktop
|
|
|
|
DESTINATION
|
|
|
|
${SERVICETYPES_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-10-31 05:10:27 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2015-09-01 01:05:33 +03:00
|
|
|
org.kde.KMediaPlayer.xml
|
|
|
|
DESTINATION ${DBUS_INTERFACES_INSTALL_DIR}
|
|
|
|
)
|