-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMake_dependencies.cmake
More file actions
36 lines (28 loc) · 1.21 KB
/
Copy pathCMake_dependencies.cmake
File metadata and controls
36 lines (28 loc) · 1.21 KB
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
if(NOT DEFINED CPM_USE_LOCAL_PACKAGES)
set(CPM_USE_LOCAL_PACKAGES ${incplot-lib_USE_LOCAL_PACKAGES} CACHE BOOL "CPM will try to find packages locally first" FORCE)
endif()
if(NOT DEFINED CPM_LOCAL_PACKAGES_ONLY)
set(CPM_LOCAL_PACKAGES_ONLY ${incplot-lib_USE_LOCAL_PACKAGES_ONLY} CACHE BOOL
"CPM will not be forbidden from downloading packages. Will have to use local packages." FORCE)
endif()
include(cmake/CPM_0.42.3.cmake)
CPMAddPackage(
URI "gh:InCom-0/otfccxx#main"
OPTIONS "otfccxx_BUILD_SHARED_LIB ${incplot-lib_BUILD_SHARED_LIB}"
NAME otfccxx
)
CPMAddPackage(
NAME nlohmann_json
URL https://github.com/nlohmann/json/releases/download/v3.12.0/json.tar.xz
URL_HASH SHA256=42f6e95cad6ec532fd372391373363b62a14af6d771056dbfc86160e6dfff7aa
EXCLUDE_FROM_ALL TRUE
)
CPMAddPackage("gh:InCom-0/incstd#main")
CPMAddPackage("gh:InCom-0/incerr#main")
########################################################
### Vendored dependencies ###
########################################################
set(CPM_csv2_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/vendor/csv2)
CPMAddPackage("gh:p-ranav/csv2#master")
set(CPM_utf-cpp_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/vendor/utf-cpp)
CPMAddPackage("gh:InCom-0/utf-cpp#master")