@@ -5,6 +5,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
5
5
# Options
6
6
option (SOURCEMETA_CORE_UUID "Build the Sourcemeta Core UUID library" ON )
7
7
option (SOURCEMETA_CORE_GZIP "Build the Sourcemeta Core GZIP library" ON )
8
+ option (SOURCEMETA_CORE_MD5 "Build the Sourcemeta Core MD5 library" ON )
8
9
option (SOURCEMETA_CORE_REGEX "Build the Sourcemeta Core Regex library" ON )
9
10
option (SOURCEMETA_CORE_URI "Build the Sourcemeta Core URI library" ON )
10
11
option (SOURCEMETA_CORE_JSON "Build the Sourcemeta Core JSON library" ON )
@@ -20,6 +21,7 @@ option(SOURCEMETA_CORE_INSTALL "Install the Sourcemeta Core library" ON)
20
21
option (SOURCEMETA_CORE_ADDRESS_SANITIZER "Build Sourcemeta Core with an address sanitizer" OFF )
21
22
option (SOURCEMETA_CORE_UNDEFINED_SANITIZER "Build Sourcemeta Core with an undefined behavior sanitizer" OFF )
22
23
option (SOURCEMETA_CORE_CONTRIB_ZLIB "Build the ZLIB library for downstream consumers" OFF )
24
+ option (SOURCEMETA_CORE_CONTRIB_BEARSSL "Build the BearSSL library for downstream consumers" OFF )
23
25
option (SOURCEMETA_CORE_CONTRIB_GOOGLETEST "Build the GoogleTest library for downstream consumers" OFF )
24
26
option (SOURCEMETA_CORE_CONTRIB_GOOGLEBENCHMARK "Build the GoogleBenchmark library for downstream consumers" OFF )
25
27
@@ -57,6 +59,11 @@ if(SOURCEMETA_CORE_GZIP OR SOURCEMETA_CORE_CONTRIB_ZLIB)
57
59
add_subdirectory (src/core/gzip )
58
60
endif ()
59
61
62
+ if (SOURCEMETA_CORE_MD5 OR SOURCEMETA_CORE_CONTRIB_BEARSSL )
63
+ find_package (BearSSL REQUIRED )
64
+ add_subdirectory (src/core/md5 )
65
+ endif ()
66
+
60
67
if (SOURCEMETA_CORE_REGEX )
61
68
find_package (BoostRegex REQUIRED )
62
69
add_subdirectory (src/core/regex )
@@ -132,6 +139,10 @@ if(SOURCEMETA_CORE_TESTS)
132
139
add_subdirectory (test /gzip )
133
140
endif ()
134
141
142
+ if (SOURCEMETA_CORE_MD5 )
143
+ add_subdirectory (test /md5 )
144
+ endif ()
145
+
135
146
if (SOURCEMETA_CORE_REGEX )
136
147
add_subdirectory (test /regex )
137
148
endif ()
0 commit comments