build: add fmtlib as a dependency

This commit is contained in:
Danny Robson 2024-02-21 14:17:00 +10:00
parent 220072fd6d
commit b3e14f949e

View File

@ -2,6 +2,8 @@
cmake_minimum_required(VERSION 3.7.0)
project(cruft-crypto CXX)
find_package (fmt REQUIRED)
list (APPEND components
hash/blake
@ -62,7 +64,7 @@ endif ()
###############################################################################
add_library (cruft-crypto STATIC ${sources})
target_link_libraries (cruft-crypto INTERFACE cruft)
target_link_libraries (cruft-crypto INTERFACE cruft PRIVATE fmt::fmt)
##-----------------------------------------------------------------------------