From 30932680fb766658a5c681bf0512493771c59d0a Mon Sep 17 00:00:00 2001 From: JenChieh Date: Wed, 27 Dec 2023 01:46:45 -0800 Subject: [PATCH] chore: Add spdlog --- .github/workflows/build.yml | 1 + CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51070d7..0ceedda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,6 +51,7 @@ jobs: - name: vcpkg install run: | + vcpkg install spdlog vcpkg install cli11 vcpkg list diff --git a/CMakeLists.txt b/CMakeLists.txt index 81f45b9..1696533 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,7 @@ else () endif () # vcpkg +find_package(spdlog CONFIG REQUIRED) find_package(CLI11 CONFIG REQUIRED) # include and static link @@ -61,4 +62,5 @@ foreach(item ${V_GLOB}) endforeach() # link +target_link_libraries(${PROJECT_NAME} PRIVATE spdlog::spdlog_header_only) target_link_libraries(${PROJECT_NAME} PRIVATE CLI11::CLI11)