File: CMakeLists.txt

package info (click to toggle)
kodi-pvr-pctv 19.0.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 568 kB
  • sloc: cpp: 1,705; xml: 67; makefile: 10
file content (31 lines) | stat: -rw-r--r-- 794 bytes parent folder | download | duplicates (3)
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
cmake_minimum_required(VERSION 3.5)
project(pvr.pctv)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})

find_package(Kodi REQUIRED)
find_package(JsonCpp REQUIRED)

include_directories(${JSONCPP_INCLUDE_DIRS}
                    ${KODI_INCLUDE_DIR}/..) # Hack way with "/..", need bigger Kodi cmake rework to match right include ways

set(DEPLIBS ${JSONCPP_LIBRARIES})

set(PCTV_SOURCES src/addon.cpp
                 src/md5.cpp
                 src/PctvData.cpp
                 src/rest.cpp)

set(PCTV_HEADERS src/addon.h
                 src/md5.h
                 src/PctvData.h
                 src/rest.h)

# To prevent build exit on deprecated warnings (from JsonCpp)
if(WIN32)
  add_compile_options(/wd4996)
endif()

build_addon(pvr.pctv PCTV DEPLIBS)

include(CPack)