forked from kodi-pvr/pvr.stalker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
63 lines (51 loc) · 1.37 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.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(WIN32)
add_compile_options(/wd4996)
endif()
add_subdirectory(lib/libstalkerclient)
set(DEPLIBS
stalkerclient
${LIBXML2_LIBRARIES}
${JSONCPP_LIBRARIES})
set(BASE_SOURCES
src/base/Cache.cpp)
set(SOURCES
src/ChannelManager.cpp
src/CWatchdog.cpp
src/GuideManager.cpp
src/HTTPSocket.cpp
src/SAPI.cpp
src/SData.cpp
src/SessionManager.cpp
src/Utils.cpp
src/XMLTV.cpp)
set(STALKER_SOURCES
${BASE_SOURCES}
${SOURCES})
set(STALKER_HEADERS
src/ChannelManager.h
src/CWatchdog.h
src/Error.h
src/GuideManager.h
src/HTTPSocket.h
src/SAPI.h
src/SData.h
src/SessionManager.h
src/Settings.h
src/Utils.h
src/XMLTV.h
src/base/Cache.h
src/base/ChannelManager.h
src/base/GuideManager.h)
build_addon(pvr.stalker STALKER DEPLIBS)
include(CPack)