forked from WebPlatformForEmbedded/OCDM-Playready
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (26 loc) · 972 Bytes
/
CMakeLists.txt
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
30
31
32
33
34
35
36
37
38
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)