-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathCMakeLists.txt
114 lines (98 loc) · 4.06 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
cmake_minimum_required(VERSION 3.5)
project(pvr.vbox)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(TinyXML2 REQUIRED)
include_directories(${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
${TINYXML2_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR})
set(DEPLIBS ${TINYXML2_LIBRARIES})
# Sources and headers
set(VBOX_SOURCES
src/addon.h
src/addon.cpp
src/VBoxInstance.h
src/VBoxInstance.cpp)
set(VBOX_SOURCES_VBOX
src/vbox/AddonSettings.h
src/vbox/AddonSettings.cpp
src/vbox/CategoryGenreMapper.h
src/vbox/CategoryGenreMapper.cpp
src/vbox/Channel.h
src/vbox/ChannelStreamingStatus.h
src/vbox/ChannelStreamingStatus.cpp
src/vbox/ContentIdentifier.h
src/vbox/Exceptions.h
src/vbox/GuideChannelMapper.h
src/vbox/GuideChannelMapper.cpp
src/vbox/InstanceSettings.h
src/vbox/InstanceSettings.cpp
src/vbox/Recording.h
src/vbox/Recording.cpp
src/vbox/RecordingReader.cpp
src/vbox/RecordingReader.h
src/vbox/SeriesRecording.h
src/vbox/SeriesRecording.cpp
src/vbox/SettingsMigration.h
src/vbox/SettingsMigration.cpp
src/vbox/SoftwareVersion.h
src/vbox/SoftwareVersion.cpp
src/vbox/StartupStateHandler.h
src/vbox/StartupStateHandler.cpp
src/vbox/Utilities.h
src/vbox/VBox.h
src/vbox/VBox.cpp)
set(VBOX_SOURCES_VBOX_REQUEST
src/vbox/request/ApiRequest.h
src/vbox/request/ApiRequest.cpp
src/vbox/request/FileRequest.h
src/vbox/request/Request.h)
set(VBOX_SOURCES_VBOX_RESPONSE
src/vbox/response/Content.h
src/vbox/response/Content.cpp
src/vbox/response/Factory.h
src/vbox/response/Response.h
src/vbox/response/Response.cpp)
set(VBOX_SOURCES_TIMESHIFT
src/timeshift/Buffer.h
src/timeshift/Buffer.cpp
src/timeshift/DummyBuffer.h
src/timeshift/FilesystemBuffer.h
src/timeshift/FilesystemBuffer.cpp)
set(VBOX_SOURCES_XMLTV
src/xmltv/Channel.h
src/xmltv/Channel.cpp
src/xmltv/Guide.h
src/xmltv/Guide.cpp
src/xmltv/Programme.h
src/xmltv/Programme.cpp
src/xmltv/Schedule.h
src/xmltv/Schedule.cpp
src/xmltv/Utilities.h
src/xmltv/Utilities.cpp)
source_group("Source Files" FILES ${VBOX_SOURCES})
source_group("Source Files\\vbox" FILES ${VBOX_SOURCES_VBOX})
source_group("Source Files\\vbox\\request" FILES ${VBOX_SOURCES_VBOX_REQUEST})
source_group("Source Files\\vbox\\response" FILES ${VBOX_SOURCES_VBOX_RESPONSE})
source_group("Source Files\\timeshift" FILES ${VBOX_SOURCES_TIMESHIFT})
source_group("Source Files\\xmltv" FILES ${VBOX_SOURCES_XMLTV})
# Resource files
set(VBOX_RESOURCES
README.md
pvr.vbox/addon.xml.in
pvr.vbox/changelog.txt
pvr.vbox/icon.png
pvr.vbox/resources/settings.xml
pvr.vbox/resources/category_to_genre_types.xml
pvr.vbox/resources/language/resource.language.en_gb/strings.po)
source_group("Resource Files" FILES ${VBOX_RESOURCES})
# Append our custom file definitions
list(APPEND VBOX_SOURCES
${VBOX_SOURCES_VBOX}
${VBOX_SOURCES_VBOX_REQUEST}
${VBOX_SOURCES_VBOX_RESPONSE}
${VBOX_SOURCES_TIMESHIFT}
${VBOX_SOURCES_XMLTV}
${VBOX_RESOURCES})
build_addon(pvr.vbox VBOX DEPLIBS)
include(CPack)