@@ -51,6 +51,7 @@ FetchContent_Declare(
51
51
rapidjson_lib
52
52
GIT_REPOSITORY ${RapidJSON_GIT_REPOSITORY}
53
53
GIT_TAG ${RapidJSON_GIT_TAG}
54
+ GIT_SHALLOW TRUE
54
55
)
55
56
56
57
set (CLI11_GIT_REPOSITORY "https://github.com/CLIUtils/CLI11" )
@@ -60,6 +61,7 @@ FetchContent_Declare(
60
61
cli11
61
62
GIT_REPOSITORY ${CLI11_GIT_REPOSITORY}
62
63
GIT_TAG ${CLI11_GIT_TAG}
64
+ GIT_SHALLOW TRUE
63
65
)
64
66
65
67
set (rang_GIT_REPOSITORY "https://github.com/agauniyal/rang.git" )
@@ -70,6 +72,7 @@ FetchContent_Declare(
70
72
rang
71
73
GIT_REPOSITORY ${rang_GIT_REPOSITORY}
72
74
GIT_TAG ${rang_GIT_TAG}
75
+ GIT_SHALLOW TRUE
73
76
)
74
77
75
78
set (libcbor_GIT_REPOSITORY "https://github.com/PJK/libcbor" )
@@ -81,6 +84,7 @@ FetchContent_Declare(
81
84
libcbor
82
85
GIT_REPOSITORY ${libcbor_GIT_REPOSITORY}
83
86
GIT_TAG ${libcbor_GIT_TAG}
87
+ GIT_SHALLOW TRUE
84
88
)
85
89
set (WITH_TESTS OFF CACHE BOOL "Build libcbor tests" )
86
90
set (WITH_EXAMPLES OFF CACHE BOOL "Build libcbor examples" )
@@ -92,6 +96,17 @@ FetchContent_Declare(
92
96
cpp_base64
93
97
GIT_REPOSITORY ${cpp_base64_GIT_REPOSITORY}
94
98
GIT_TAG ${cpp_base64_GIT_TAG}
99
+ GIT_SHALLOW TRUE
100
+ )
101
+
102
+ set (glaze_GIT_REPOSITORY "https://github.com/stephenberry/glaze" )
103
+ # glaze v2.6.9
104
+ set (glaze_GIT_TAG 6bcc20ce7eb59df60b94488a4f6be723731db00e )
105
+ FetchContent_Declare (
106
+ glaze
107
+ GIT_REPOSITORY ${glaze_GIT_REPOSITORY}
108
+ GIT_TAG ${glaze_GIT_TAG}
109
+ GIT_SHALLOW TRUE
95
110
)
96
111
97
112
list (APPEND CMAKE_MODULE_PATH ${libcbor_SOURCE_DIR} /CMakeModules )
@@ -103,6 +118,7 @@ set(libcbor_INCLUDE_DIR "${libcbor_SOURCE_DIR}/src")
103
118
set (libcbor_EXPORT_DIR "${libcbor_BINARY_DIR} /src" )
104
119
set (libcbor_CONFIGURATION_DIR "${libcbor_BINARY_DIR} /" )
105
120
set (cpp_base64_INCLUDE_DIR "${cpp_base64_SOURCE_DIR} /include" )
121
+ set (glaze_INCLUDE_DIR "${glaze_SOURCE_DIR} /include" )
106
122
107
123
set (BUILD_TESTING ${_itk_build_testing} )
108
124
set (BUILD_SHARED_LIBS ${_itk_build_shared} )
@@ -118,6 +134,7 @@ set(WebAssemblyInterface_INCLUDE_DIRS
118
134
${libcbor_EXPORT_DIR}
119
135
${libcbor_CONFIGURATION_DIR}
120
136
${cpp_base64_INCLUDE_DIR}
137
+ ${glaze_INCLUDE_DIR}
121
138
)
122
139
list (APPEND WebAssemblyInterface_LIBRARIES cbor cpp-base64 )
123
140
0 commit comments