2015-08-21 17:04:07 +02:00
|
|
|
project(pvr.octonet)
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
2016-02-02 11:04:45 +01:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
|
2015-08-21 17:04:07 +02:00
|
|
|
enable_language(CXX)
|
|
|
|
|
|
|
|
find_package(kodi REQUIRED)
|
|
|
|
find_package(kodiplatform REQUIRED)
|
|
|
|
find_package(platform REQUIRED)
|
2016-02-02 11:04:45 +01:00
|
|
|
find_package(JsonCpp REQUIRED)
|
2015-08-21 17:04:07 +02:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${kodiplatform_INCLUDE_DIRS}
|
|
|
|
${platform_INCLUDE_DIRS}
|
2016-02-02 11:04:45 +01:00
|
|
|
${KODI_INCLUDE_DIR}
|
|
|
|
${JSONCPP_INCLUDE_DIRS})
|
2015-08-21 17:04:07 +02:00
|
|
|
|
|
|
|
set(DEPLIBS
|
2016-02-02 11:04:45 +01:00
|
|
|
${platform_LIBRARIES}
|
|
|
|
${JSONCPP_LIBRARIES})
|
2015-08-21 17:04:07 +02:00
|
|
|
|
|
|
|
set(OCTONET_SOURCES
|
2016-02-02 11:04:45 +01:00
|
|
|
src/OctonetData.cpp
|
2015-08-21 17:04:07 +02:00
|
|
|
src/client.cpp)
|
|
|
|
|
|
|
|
build_addon(pvr.octonet OCTONET DEPLIBS)
|
|
|
|
|
|
|
|
include(CPack)
|