Bundle identiconpp

This commit is contained in:
tastytea 2022-06-11 07:35:29 +02:00
parent 2b9575c51a
commit 3039d16919
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
3 changed files with 13 additions and 1 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "dist/identiconpp"]
path = dist/identiconpp
url = https://schlomp.space/tastytea/identiconpp

View File

@ -6,6 +6,9 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# project build option
option(LIBRAVATAR_BUNDLED_IDENTICONPP "use bundled identiconpp" NO)
project(libravatarserv
VERSION 0.8.0
DESCRIPTION "A simple libravatar server."
@ -23,7 +26,12 @@ if(NOT libcryptopp_FOUND)
# Debian stretch package installs libcrypto++.pc
pkg_check_modules(libcryptopp REQUIRED IMPORTED_TARGET libcrypto++)
endif()
find_package(identiconpp REQUIRED CONFIG)
if (LIBRAVATAR_BUNDLED_IDENTICONPP)
add_subdirectory(dist/identiconpp)
else()
find_package(identiconpp REQUIRED CONFIG)
endif()
find_package(Filesystem REQUIRED COMPONENTS Final Experimental)
add_subdirectory(src)

1
dist/identiconpp vendored Submodule

@ -0,0 +1 @@
Subproject commit 9070f154a462abab5edca7b9050ce4f4893d3999