-
Notifications
You must be signed in to change notification settings - Fork 33
/
CMakeLists.txt
68 lines (58 loc) · 2.34 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
cmake_minimum_required(VERSION 3.5)
project(pvr.nextpvr)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(ZLIB REQUIRED)
find_package(TinyXML2 REQUIRED)
include_directories(${TINYXML2_INCLUDE_DIR}
${ZLIB_INCLUDE_DIRS}
${KODI_INCLUDE_DIR}/..) # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
set(NEXTPVR_SOURCES src/addon.cpp
src/pvrclient-nextpvr.cpp
src/Socket.cpp
src/uri.cpp
src/BackendRequest.cpp
src/Channels.cpp
src/EPG.cpp
src/MenuHook.cpp
src/Recordings.cpp
src/InstanceSettings.cpp
src/Timers.cpp
src/buffers/Buffer.cpp
src/buffers/DummyBuffer.cpp
src/buffers/TranscodedBuffer.cpp
src/buffers/ClientTimeshift.cpp
src/buffers/RecordingBuffer.cpp
src/buffers/CircularBuffer.cpp
src/utilities/SettingsMigration.cpp
src/buffers/Seeker.cpp)
set(NEXTPVR_HEADERS src/addon.h
src/os-dependent.h
src/pvrclient-nextpvr.h
src/Socket.h
src/uri.h
src/BackendRequest.h
src/Channels.h
src/EPG.h
src/MenuHook.h
src/Recordings.h
src/InstanceSettings.h
src/Timers.h
src/buffers/Buffer.h
src/buffers/DummyBuffer.h
src/buffers/TranscodedBuffer.h
src/buffers/ClientTimeshift.h
src/buffers/RecordingBuffer.h
src/buffers/CircularBuffer.h
src/buffers/Seeker.h
src/utilities/SettingsMigration.h
src/utilities/XMLUtils.h)
SET(DEPLIBS ${TINYXML2_LIBRARIES}
${ZLIB_LIBRARIES})
message(STATUS "ZLIB_LIBRARIES: ${ZLIB_LIBRARIES}")
if(WIN32)
list(APPEND DEPLIBS ws2_32)
add_definitions(-D_WINSOCKAPI_ -D_WINSOCK_DEPRECATED_NO_WARNINGS)
endif()
build_addon(pvr.nextpvr NEXTPVR DEPLIBS)
include(CPack)