Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (26 sloc) 972 Bytes
cmake_minimum_required(VERSION 3.3)
project(DRMPlayready)
find_package(WPEFramework)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set(MODULE_NAME Playready)
find_package(PlayReady REQUIRED)
add_library(${MODULE_NAME} SHARED
MediaSession.cpp
MediaSystem.cpp
MediaSessionExt.cpp)
set_target_properties(${MODULE_NAME} PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES)
include("${PLAYREADY_INCLUDE}/playready.cmake")
target_include_directories(${MODULE_NAME}
PRIVATE
"${CMAKE_SYSROOT}/usr/include"
"${CMAKE_SYSROOT}/usr/include/${NAMESPACE}"
${PLAYREADY_INCLUDE_DIRS})
target_link_libraries(${MODULE_NAME}
PRIVATE
PlayReady::PlayReady)
# Library installation section
set_target_properties(${MODULE_NAME} PROPERTIES SUFFIX ".drm")
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/WPEFramework/OCDM)
You can’t perform that action at this time.