Adds Logging module with thread-safe Logger base class, ScopedContext RAII guards, Preset helpers, and a FileLogger standalone test/example. Includes CMake module system for auto-discovery and CTest integration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
859 B
CMake
26 lines
859 B
CMake
include(FetchContent)
|
|
|
|
function(void_fetch_dependency DEP_NAME)
|
|
# FIXME: Add if needed external
|
|
# if(DEP_NAME STREQUAL "glaze")
|
|
# if(NOT glaze_POPULATED)
|
|
# message(STATUS "[MyLib] Fetching Glaze on-demand...")
|
|
# FetchContent_Declare(glaze
|
|
# GIT_REPOSITORY https://github.com/stephenberry/glaze.git
|
|
# GIT_TAG v2.8.5
|
|
# )
|
|
# FetchContent_MakeAvailable(glaze)
|
|
# endif()
|
|
#
|
|
# elseif(DEP_NAME STREQUAL "fmt")
|
|
# if(NOT fmt_POPULATED)
|
|
# message(STATUS "[MyLib] Fetching fmt on-demand...")
|
|
# FetchContent_Declare(fmt
|
|
# GIT_REPOSITORY https://github.com/fmtlib/fmt.git
|
|
# GIT_TAG 10.2.1
|
|
# )
|
|
# FetchContent_MakeAvailable(fmt)
|
|
# endif()
|
|
# endif()
|
|
endfunction()
|