forked from xbmc/vfs.libarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (30 loc) · 1.06 KB
/
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
37
cmake_minimum_required(VERSION 3.5)
project(vfs.libarchive)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
find_package(Kodi REQUIRED)
find_package(LibArchive REQUIRED)
find_package(LibLZMA REQUIRED)
find_package(BZip2 REQUIRED)
find_package(ZLIB REQUIRED)
find_package(LZ4 REQUIRED)
find_package(LZO2 REQUIRED)
find_package(OpenSSL REQUIRED)
include_directories(${KODI_INCLUDE_DIR}/..
${LibArchive_INCLUDE_DIRS}
${LIBLZMA_INCLUDE_DIRS}
${BZIP2_INCLUDE_DIR}
${ZLIB_INCLUDE_DIRS}
${LZ4_INCLUDE_DIRS}
${LZO2_INCLUDE_DIRS}
${OPENSSL_INCLUDE_DIR})
set(ARCHIVE_SOURCES src/ArchiveFile.cpp)
set(DEPLIBS ${LibArchive_LIBRARIES}
${LIBLZMA_LIBRARIES}
${BZIP2_LIBRARIES}
${OPENSSL_LIBRARIES}
${ZLIB_LIBRARIES}
${LZ4_LIBRARIES}
${LZO2_LIBRARIES})
add_definitions(-DLIBARCHIVE_STATIC -D_CRT_NONSTDC_NO_DEPRECATE)
build_addon(vfs.libarchive ARCHIVE DEPLIBS)
include(CPack)