-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
61 lines (48 loc) · 1.72 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
project(pvr.ksys)
cmake_minimum_required(VERSION 3.4.3)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
enable_language(CXX)
include(FindOpenSSL)
#include(FindCURL)
set(CMAKE_ANDROID_STL_TYPE gnustl_shared)
SET( CMAKE_CXX_FLAGS "-DANDROID_STL=c++_shared ${CMAKE_CXX_FLAGS}" )
find_package(Kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(p8-platform REQUIRED)
find_package(ZLIB REQUIRED)
find_package(CURL REQUIRED)
find_package(JsonCpp REQUIRED)
include_directories(${kodiplatform_INCLUDE_DIRS}
${p8-platform_INCLUDE_DIRS}
${KODI_INCLUDE_DIR}
${JSONCPP_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/lib)
set(DEPLIBS ${p8-platform_LIBRARIES}
${ZLIB_LIBRARIES}
${CURL_LIBRARIES}
${JSONCPP_LIBRARIES})
message(STATUS "ZLIB_LIBRARIES: ${ZLIB_LIBRARIES}")
message(STATUS "CURL_LIBRARIES: ${CURL_LIBRARIES}")
message(STATUS "KODI_INCLUDE_DIR: ${KODI_INCLUDE_DIR}")
message(STATUS "p8-platform_INCLUDE_DIRS: ${p8-platform_INCLUDE_DIRS}")
message(STATUS "OPENSSL_FOUND: ${OPENSSL_FOUND}")
set(KSYS_SOURCES src/client.cpp
src/PVRKsysAPI.cpp
src/PVRIptvData.cpp
src/md5.cpp
src/PVRKauth.cpp
src/dialogs/GUIDialogPlayerID.cpp
src/dialogs/GUIDialogPinCode.cpp)
#src/PVRRecorder.cpp
#src/PVRRecorderJob.cpp
set(KSYS_HEADERS src/client.h
src/PVRKsysAPI.h
src/PVRIptvData.h
src/md5.h
src/PVRKauth.h
src/dialogs/GUIDialogPlayerID.h
src/dialogs/GUIDialogPinCode.h)
#src/PVRRecorder.h
#src/PVRRecorderJob.h
build_addon(pvr.ksys KSYS DEPLIBS)
include(CPack)