forked from kodi-pvr/pvr.iptvsimple
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
36 lines (26 loc) · 1.05 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
cmake_minimum_required(VERSION 3.5)
project(pvr.iptvarchive)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(p8-platform REQUIRED)
find_package(Rapidxml REQUIRED)
find_package(ZLIB REQUIRED)
include_directories(${kodiplatform_INCLUDE_DIRS}
${p8-platform_INCLUDE_DIRS}
${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
${RAPIDXML_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS})
set(DEPLIBS ${p8-platform_LIBRARIES}
${ZLIB_LIBRARIES})
message(STATUS "ZLIB_LIBRARIES: ${ZLIB_LIBRARIES}")
set(IPTV_SOURCES src/client.cpp
src/PVRIptvData.cpp
src/ArchiveConfig.cpp)
set(IPTV_HEADERS src/client.h
src/PVRIptvData.h
src/ArchiveConfig.h)
addon_version(pvr.iptvarchive IPTV)
add_definitions(-DIPTV_VERSION=${IPTV_VERSION})
build_addon(pvr.iptvarchive IPTV DEPLIBS)
include(CPack)