forked from kodi-pvr/pvr.nextpvr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (27 loc) · 933 Bytes
/
CMakeLists.txt
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
32
33
34
35
36
project(pvr.nextpvr)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})
enable_language(CXX)
find_package(kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(platform REQUIRED)
find_package(TinyXML REQUIRED)
include_directories(${kodiplatform_INCLUDE_DIRS}
${platform_INCLUDE_DIRS}
${TINYXML_INCLUDE_DIR}
${KODI_INCLUDE_DIR})
set(NEXTPVR_SOURCES src/client.cpp
src/DialogRecordPref.cpp
src/liveshift.cpp
src/md5.cpp
src/pvrclient-nextpvr.cpp
src/RingBuffer.cpp
src/Socket.cpp
src/uri.cpp)
SET(DEPLIBS ${platform_LIBRARIES}
${TINYXML_LIBRARIES})
if(WIN32)
list(APPEND DEPLIBS ws2_32)
endif()
build_addon(pvr.nextpvr NEXTPVR DEPLIBS)
include(CPack)