-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
47 lines (38 loc) · 873 Bytes
/
CMakeLists.txt
File metadata and controls
47 lines (38 loc) · 873 Bytes
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
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.15)
include(FetchContent)
project(
AugmentaClientSDK
VERSION 0.1
LANGUAGES CXX
)
add_library(AugmentaClientSDK
src/AugmentaClientSDK.cpp
)
set_target_properties(AugmentaClientSDK
PROPERTIES
CXX_STANDARD 17
)
target_include_directories(AugmentaClientSDK
PRIVATE
external
PUBLIC
include
)
set(ZSTD_BUILD_STATIC ON)
set(ZSTD_BUILD_SHARED OFF)
set(ZSTD_BUILD_COMPRESSION ON)
set(ZSTD_BUILD_DECOMPRESSION ON)
set(ZSTD_BUILD_DICTBUILDER ON)
set(ZSTD_BUILD_DEPRECATED OFF)
set(ZSTD_LEGACY_SUPPORT OFF)
FetchContent_Declare(
zstd
GIT_REPOSITORY https://github.com/facebook/zstd.git
GIT_TAG 794ea1b0afca0f020f4e57b6732332231fb23c70 # v1.5.6
SOURCE_SUBDIR build/cmake
)
FetchContent_MakeAvailable(zstd)
target_link_libraries(AugmentaClientSDK
PRIVATE
libzstd
)