forked from notspiff/inputstream.mpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (37 loc) · 1.11 KB
/
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
39
40
41
42
43
44
45
46
47
48
project(inputstream.mpd)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
enable_language(CXX)
find_package(Kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(p8-platform REQUIRED)
set(MPD_SOURCES
src/MainDash.cpp
src/dash/DASHTree.cpp
src/dash/DASHStream.cpp
src/helpers.cpp
src/oscompat.cpp
)
list(APPEND DEPLIBS ${p8-platform_LIBRARIES})
include_directories(${INCLUDES}
${kodiplatform_INCLUDE_DIRS}
${p8-platform_INCLUDE_DIRS}
${KODI_INCLUDE_DIR}
lib/libbento4/Core
)
if(WIN32)
add_definitions(-DXML_STATIC)
include_directories(lib/expat/include)
link_directories(${PROJECT_SOURCE_DIR}/lib/expat/lib)
list(APPEND DEPLIBS ws2_32 expat)
else()
include(FindEXPAT)
find_package(EXPAT REQUIRED)
include_directories(${EXPAT_INCLUDE_DIRS})
list(APPEND DEPLIBS ${EXPAT_LIBRARIES})
add_definitions(-D__STDC_FORMAT_MACROS)
endif()
add_subdirectory(lib/libbento4)
list(APPEND DEPLIBS bento4)
build_addon(inputstream.mpd MPD DEPLIBS)
include(CPack)