forked from kodi-pvr/pvr.iptvsimple
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
63 lines (53 loc) · 2.46 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
cmake_minimum_required(VERSION 3.5)
project(pvr.iptvsimple)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(Pugixml REQUIRED)
find_package(ZLIB REQUIRED)
include_directories(${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
${PUGIXML_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS})
set(DEPLIBS ${PUGIXML_LIBRARIES}
${ZLIB_LIBRARIES})
message(STATUS "PUGIXML_LIBRARIES: ${PUGIXML_LIBRARIES}")
message(STATUS "ZLIB_LIBRARIES: ${ZLIB_LIBRARIES}")
set(IPTV_SOURCES src/PVRIptvData.cpp
src/iptvsimple/CatchupController.cpp
src/iptvsimple/Channels.cpp
src/iptvsimple/ChannelGroups.cpp
src/iptvsimple/Epg.cpp
src/iptvsimple/PlaylistLoader.cpp
src/iptvsimple/Settings.cpp
src/iptvsimple/StreamManager.cpp
src/iptvsimple/data/Channel.cpp
src/iptvsimple/data/ChannelEpg.cpp
src/iptvsimple/data/ChannelGroup.cpp
src/iptvsimple/data/EpgEntry.cpp
src/iptvsimple/data/EpgGenre.cpp
src/iptvsimple/utilities/FileUtils.cpp
src/iptvsimple/utilities/Logger.cpp
src/iptvsimple/utilities/StreamUtils.cpp
src/iptvsimple/utilities/WebUtils.cpp)
set(IPTV_HEADERS src/PVRIptvData.h
src/iptvsimple/CatchupController.h
src/iptvsimple/Channels.h
src/iptvsimple/ChannelGroups.h
src/iptvsimple/Epg.h
src/iptvsimple/PlaylistLoader.h
src/iptvsimple/Settings.h
src/iptvsimple/StreamManager.h
src/iptvsimple/data/Channel.h
src/iptvsimple/data/ChannelEpg.h
src/iptvsimple/data/ChannelGroup.h
src/iptvsimple/data/EpgEntry.h
src/iptvsimple/data/EpgGenre.h
src/iptvsimple/data/StreamEntry.h
src/iptvsimple/utilities/FileUtils.h
src/iptvsimple/utilities/Logger.h
src/iptvsimple/utilities/StreamUtils.h
src/iptvsimple/utilities/WebUtils.h
src/iptvsimple/utilities/XMLUtils.h)
addon_version(pvr.iptvsimple IPTV)
add_definitions(-DIPTV_VERSION=${IPTV_VERSION})
build_addon(pvr.iptvsimple IPTV DEPLIBS)
include(CPack)