From ac64c159b62361301f48f7fd05bfd3db931ebc9c Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:29:18 -0400 Subject: [PATCH] find_package spdlog (#17) --- OTRExporter/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OTRExporter/CMakeLists.txt b/OTRExporter/CMakeLists.txt index 61efe3b..3140ded 100644 --- a/OTRExporter/CMakeLists.txt +++ b/OTRExporter/CMakeLists.txt @@ -163,7 +163,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/extern/tinyxml2 ${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/extern/ZAPDUtils ${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/extern/StormLib/src - ${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/extern/spdlog/include ${CMAKE_CURRENT_SOURCE_DIR}/../../libultraship/src/resource ${CMAKE_CURRENT_SOURCE_DIR}/../../soh/soh . @@ -172,6 +171,9 @@ target_include_directories(${PROJECT_NAME} PRIVATE find_package(nlohmann_json REQUIRED) target_link_libraries(${PROJECT_NAME} PUBLIC nlohmann_json::nlohmann_json) +find_package(spdlog REQUIRED) +target_link_libraries(${PROJECT_NAME} PUBLIC spdlog::spdlog) + if(MSVC) if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64") target_compile_options(${PROJECT_NAME} PRIVATE