File: CMakeLists.txt

package info (click to toggle)
kodi-pvr-filmon 19.0.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 596 kB
  • sloc: cpp: 1,499; sh: 45; xml: 37; makefile: 10
file content (26 lines) | stat: -rw-r--r-- 650 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
cmake_minimum_required(VERSION 3.5)
project(pvr.filmon)

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(FILMON_SOURCES src/FilmonAPI.cpp
                   src/PVRFilmonData.cpp)

set(FILMON_HEADERS src/FilmonAPI.h
                   src/PVRFilmonData.h)

if(WIN32)
  add_compile_options(/wd4996)
endif()

build_addon(pvr.filmon FILMON DEPLIBS)

include(CPack)