forked from kodi-pvr/pvr.argustv
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
81 lines (65 loc) · 2.38 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
72
73
74
75
76
77
78
79
80
81
project(pvr.argustv)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
enable_language(CXX)
find_package(kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(platform REQUIRED)
include_directories(${kodiplatform_INCLUDE_DIRS}
${platform_INCLUDE_DIRS}
${KODI_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/src)
if(NOT WIN32)
add_options(ALL_LANGUAGES ALL_BUILDS "-fPIC")
endif()
# Source files
set(ARGUSTV_SOURCES src/activerecording.cpp
src/argustvrpc.cpp
src/channel.cpp
src/client.cpp
src/epg.cpp
src/EventsThread.cpp
src/guideprogram.cpp
src/KeepAliveThread.cpp
src/pvrclient-argustv.cpp
src/recording.cpp
src/recordinggroup.cpp
src/tools.cpp
src/upcomingrecording.cpp
src/uri.cpp
src/utils.cpp)
# Header files
set(ARGUSTV_HEADERS src/activerecording.h
src/argustvrpc.h
src/channel.h
src/client.h
src/epg.h
src/EventsThread.h
src/guideprogram.h
src/KeepAliveThread.h
src/pvrclient-argustv.h
src/recording.h
src/recordinggroup.h
src/tools.h
src/upcomingrecording.h
src/uri.h
src/utils.h)
source_group("Header Files" FILES ${ARGUSTV_HEADERS})
if(WIN32)
# Misc files
set(RESOURCE_FILES pvr.argustv/addon.xml
pvr.argustv/changelog.txt
pvr.argustv/resources/settings.xml
pvr.argustv/resources/language/English/strings.po)
source_group("Resource Files" FILES ${RESOURCE_FILES})
endif(WIN32)
# Make sure that CMake adds the headers to the MSVC project
list(APPEND ARGUSTV_SOURCES ${ARGUSTV_HEADERS} ${RESOURCE_FILES})
set(DEPLIBS ${platform_LIBRARIES} tsreader)
find_package(JsonCpp REQUIRED)
list(APPEND DEPLIBS ${JSONCPP_LIBRARIES})
list(APPEND INCLUDES ${JSONCPP_INCLUDE_DIRS})
include_directories(${INCLUDES})
add_subdirectory(src/lib/tsreader)
build_addon(pvr.argustv ARGUSTV DEPLIBS)
include(CPack)