-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathCMakeLists.txt
71 lines (59 loc) · 1.84 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
64
65
66
67
68
69
70
71
cmake_minimum_required(VERSION 3.5)
project(pvr.stalker)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(LibXml2 REQUIRED)
find_package(JsonCpp REQUIRED)
include_directories(
${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
${PROJECT_SOURCE_DIR}/lib
${LIBXML2_INCLUDE_DIR}
${JSONCPP_INCLUDE_DIRS})
if(MSVC)
add_compile_options(/wd4996)
add_compile_definitions(LIBXML_STATIC)
endif()
add_subdirectory(lib/libstalkerclient)
set(DEPLIBS
stalkerclient
${LIBXML2_LIBRARIES}
${JSONCPP_LIBRARIES})
set(BASE_SOURCES
src/stalker/base/Cache.cpp)
set(SOURCES
src/addon.cpp
src/StalkerInstance.cpp
src/stalker/AddonSettings.cpp
src/stalker/ChannelManager.cpp
src/stalker/CWatchdog.cpp
src/stalker/GuideManager.cpp
src/stalker/HTTPSocket.cpp
src/stalker/InstanceSettings.cpp
src/stalker/SAPI.cpp
src/stalker/SessionManager.cpp
src/stalker/SettingsMigration.cpp
src/stalker/Utils.cpp
src/stalker/XMLTV.cpp)
set(STALKER_SOURCES
${BASE_SOURCES}
${SOURCES})
set(STALKER_HEADERS
src/addon.h
src/StalkerInstance.h
src/stalker/AddonSettings.h
src/stalker/ChannelManager.h
src/stalker/CWatchdog.h
src/stalker/Error.h
src/stalker/GuideManager.h
src/stalker/HTTPSocket.h
src/stalker/InstanceSettings.h
src/stalker/SAPI.h
src/stalker/SessionManager.h
src/stalker/SettingsMigration.h
src/stalker/Utils.h
src/stalker/XMLTV.h
src/stalker/base/Cache.h
src/stalker/base/ChannelManager.h
src/stalker/base/GuideManager.h)
build_addon(pvr.stalker STALKER DEPLIBS)
include(CPack)