-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathCMakeLists.txt
57 lines (48 loc) · 1.97 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
cmake_minimum_required(VERSION 3.5)
project(pvr.vdr.vnsi)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
set(CMAKE_CXX_STANDARD 17)
if(NOT WIN32 AND (APP_RENDER_SYSTEM STREQUAL "gl" OR NOT APP_RENDER_SYSTEM))
find_package(OpenGl REQUIRED)
set(DEPLIBS ${OPENGL_LIBRARIES})
set(INCLUDES ${OPENGL_INCLUDE_DIR})
add_definitions(${OPENGL_DEFINITIONS})
else()
find_package(OpenGLES REQUIRED)
set(DEPLIBS ${OPENGLES_LIBRARIES})
set(INCLUDES ${OPENGLES_INCLUDE_DIR})
add_definitions(${OPENGLES_DEFINITIONS})
endif()
include_directories(${INCLUDES}
${PROJECT_SOURCE_DIR}/lib
${KODI_INCLUDE_DIR}/..) # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
list(APPEND VDR_SOURCES src/Addon.cpp
src/Channels.cpp
src/ClientInstance.cpp
src/GUIWindowAdmin.cpp
src/GUIWindowChannelScan.cpp
src/InputstreamDemux.cpp
src/InputstreamRecording.cpp
src/RequestPacket.cpp
src/ResponsePacket.cpp
src/Session.cpp
src/Settings.cpp
src/TCPSocket.cpp
src/Tools.cpp)
list(APPEND VDR_HEADERS src/Addon.h
src/Channels.h
src/ClientInstance.h
src/GUIWindowAdmin.h
src/GUIWindowChannelScan.h
src/InputstreamDemux.h
src/InputstreamRecording.h
src/RequestPacket.h
src/ResponsePacket.h
src/Session.h
src/Settings.h
src/TCPSocket.h
src/Tools.h
src/vnsicommand.h)
build_addon(pvr.vdr.vnsi VDR DEPLIBS)
include(CPack)