2016-05-14 10:07:58 +00:00
|
|
|
if(MPV_FOUND)
|
|
|
|
include_directories(${MPV_INCLUDES})
|
|
|
|
endif()
|
2022-04-06 06:42:21 +03:00
|
|
|
|
2016-09-24 20:17:20 +00:00
|
|
|
# for the kded module
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
2016-03-14 21:37:05 +00:00
|
|
|
|
2016-09-03 00:32:29 +00:00
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=940)
|
2016-03-14 21:37:05 +00:00
|
|
|
|
|
|
|
set(kmediaplayer_LIB_SRCS
|
|
|
|
kmediaplayer.cpp
|
|
|
|
kmediawidget.cpp
|
|
|
|
)
|
|
|
|
|
2023-06-10 23:05:53 +03:00
|
|
|
add_library(kmediaplayer SHARED ${kmediaplayer_LIB_SRCS})
|
2016-03-14 21:37:05 +00:00
|
|
|
|
2020-02-09 21:45:50 +00:00
|
|
|
target_link_libraries(kmediaplayer PUBLIC
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
|
|
|
kdeui
|
2016-03-14 21:37:05 +00:00
|
|
|
)
|
|
|
|
|
2016-09-03 00:32:29 +00:00
|
|
|
if(MPV_FOUND)
|
2020-02-09 21:45:50 +00:00
|
|
|
target_link_libraries(kmediaplayer PRIVATE ${MPV_LIBRARIES})
|
2016-09-03 00:32:29 +00:00
|
|
|
endif()
|
|
|
|
|
2016-03-14 21:37:05 +00:00
|
|
|
set_target_properties(kmediaplayer PROPERTIES
|
2021-02-05 03:23:10 +02:00
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
2016-03-14 21:37:05 +00:00
|
|
|
)
|
|
|
|
|
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
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
2016-03-14 21:37:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS kmediaplayer
|
2023-06-17 23:57:38 +03:00
|
|
|
EXPORT kdelibsTargets
|
2023-06-17 09:11:52 +03:00
|
|
|
DESTINATION ${KDE4_LIB_INSTALL_DIR}
|
2016-03-14 21:37:05 +00:00
|
|
|
)
|
2016-03-31 05:03:57 +00:00
|
|
|
|
2016-09-22 02:55:31 +00:00
|
|
|
add_subdirectory(kded)
|