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)
|
|
|
|
|
2016-09-27 16:05:03 +02:00
|
|
|
find_package(Kodi REQUIRED)
|
2015-08-21 17:04:07 +02:00
|
|
|
find_package(kodiplatform REQUIRED)
|
2016-09-27 16:05:03 +02:00
|
|
|
find_package(p8-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}
|
2016-09-27 16:05:03 +02:00
|
|
|
${p8-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-09-27 16:05:03 +02:00
|
|
|
${p8-platform_LIBRARIES}
|
2016-02-02 11:04:45 +01:00
|
|
|
${JSONCPP_LIBRARIES})
|
2015-08-21 17:04:07 +02:00
|
|
|
|
|
|
|
set(OCTONET_SOURCES
|
2016-02-02 11:04:45 +01:00
|
|
|
src/OctonetData.cpp
|
2016-10-05 10:45:05 +02:00
|
|
|
src/client.cpp
|
|
|
|
src/Socket.cpp
|
|
|
|
src/rtsp_client.cpp)
|
2015-08-21 17:04:07 +02:00
|
|
|
|
2017-05-10 15:49:48 +02:00
|
|
|
set(OCTONET_HEADERS
|
|
|
|
src/client.h
|
|
|
|
src/OctonetData.h
|
|
|
|
src/Socket.h)
|
|
|
|
|
2015-08-21 17:04:07 +02:00
|
|
|
build_addon(pvr.octonet OCTONET DEPLIBS)
|
|
|
|
|
2016-10-05 16:46:40 +02:00
|
|
|
if(WIN32)
|
2017-11-01 19:25:09 +01:00
|
|
|
if(NOT CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
|
|
|
|
target_link_libraries(pvr.octonet wsock32 ws2_32)
|
|
|
|
else()
|
|
|
|
target_link_libraries(pvr.octonet ws2_32)
|
|
|
|
endif()
|
2016-10-05 16:46:40 +02:00
|
|
|
endif()
|
|
|
|
|
2015-08-21 17:04:07 +02:00
|
|
|
include(CPack)
|