2016-03-14 21:37:05 +00:00
|
|
|
include_directories(
|
|
|
|
${MPV_INCLUDES}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-DMAKE_KMEDIAPLAYER_LIB
|
|
|
|
-DKDE_DEFAULT_DEBUG_AREA=940
|
|
|
|
)
|
|
|
|
|
|
|
|
set(kmediaplayer_LIB_SRCS
|
|
|
|
kmediaplayer.cpp
|
|
|
|
kmediawidget.cpp
|
2016-03-31 05:03:57 +00:00
|
|
|
kaudiowidget.cpp
|
2016-03-14 21:37:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(kmediaplayer ${LIBRARY_TYPE} ${kmediaplayer_LIB_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(kmediaplayer
|
|
|
|
${MPV_LIBRARIES}
|
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
2016-03-31 05:03:57 +00:00
|
|
|
${KDE4_KFILE_LIBS}
|
2016-03-14 21:37:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(kmediaplayer PROPERTIES
|
|
|
|
VERSION ${KDE_NON_GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${KDE_NON_GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(kmediaplayer)
|
|
|
|
|
2016-03-14 21:37:05 +00:00
|
|
|
install(
|
|
|
|
FILES
|
2016-04-27 18:43:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kmediaplayer_export.h
|
2016-03-14 21:37:05 +00:00
|
|
|
kmediaplayer.h
|
|
|
|
kmediawidget.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}
|
|
|
|
COMPONENT Devel
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS kmediaplayer
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|
2016-03-31 05:03:57 +00:00
|
|
|
|
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|