-
Notifications
You must be signed in to change notification settings - Fork 13
/
CMakeLists.txt
35 lines (27 loc) · 1.01 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
cmake_minimum_required(VERSION 3.5)
project(pvr.waipu)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(RapidJSON 1.1.0 REQUIRED)
include_directories(${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
${RAPIDJSON_INCLUDE_DIRS})
set(PVRWAIPU_SOURCES
src/Curl.cpp
src/Utils.cpp
src/HLSAllowlist.cpp
src/Base64.cpp
src/JWT.cpp
src/categories.cpp
src/WaipuData.cpp)
set(PVRWAIPU_HEADERS
src/Curl.h
src/Utils.h
src/HLSAllowlist.h
src/Base64.h
src/JWT.h
src/categories.h
src/WaipuData.h)
addon_version(pvr.waipu IPTV)
add_definitions(-DIPTV_VERSION=${IPTV_VERSION})
build_addon(pvr.waipu PVRWAIPU DEPLIBS)
include(CPack)