Skip to content

Commit 10daeac

Browse files
Wentzellclaude
andcommitted
add fmt as dependency
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9ca5f2f commit 10daeac

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

deps/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Include external dependency function
22
include(${CMAKE_CURRENT_SOURCE_DIR}/external_dependency.cmake)
33

4+
# -- fmt --
5+
set(FMT_INSTALL ON)
6+
external_dependency(fmt
7+
GIT_REPO https://github.com/fmtlib/fmt
8+
GIT_TAG 12.0.0
9+
)
10+
411
# -- GTest (always build from source, exclude from all)
512
external_dependency(GTest
613
GIT_REPO https://github.com/google/googletest

test/c++/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ foreach(test ${all_tests})
2929
)
3030
endif()
3131
endforeach()
32+
33+
# FMT
34+
target_link_libraries(${PROJECT_NAME}_c PUBLIC fmt::fmt-header-only)

0 commit comments

Comments
 (0)