1
0
mirror of https://github.com/DigitalDevices/pvr.octonet.git synced 2023-10-10 13:36:57 +02:00
pvr.octonet/CMakeLists.txt

38 lines
1008 B
CMake
Raw Normal View History

2019-08-25 22:00:16 +02:00
cmake_minimum_required(VERSION 3.5)
project(pvr.octonet)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(JsonCpp REQUIRED)
2020-06-07 19:06:40 +02:00
include_directories(${KODI_INCLUDE_DIR}/.. # Hack way with "/..", need bigger Kodi cmake rework to match right include ways
${JSONCPP_INCLUDE_DIRS})
2020-06-07 19:06:40 +02:00
set(DEPLIBS ${JSONCPP_LIBRARIES})
2020-06-07 19:06:40 +02:00
set(OCTONET_SOURCES src/addon.cpp
src/OctonetData.cpp
src/Socket.cpp
src/rtsp_client.cpp)
2020-06-07 19:06:40 +02:00
set(OCTONET_HEADERS src/addon.h
src/OctonetData.h
src/Socket.h
src/rtsp_client.hpp)
addon_version(pvr.octonet OCTONET)
add_definitions(-DOCTONET_VERSION=${OCTONET_VERSION})
build_addon(pvr.octonet OCTONET DEPLIBS)
2016-10-05 16:46:40 +02:00
if(WIN32)
2020-06-07 19:06:40 +02: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()
include(CPack)