chore: spdlog

This commit is contained in:
hugy 2023-05-11 10:04:21 +08:00
parent fd3e6f4a70
commit 76dc8affe9
3 changed files with 11 additions and 6 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "spdlog"]
path = spdlog
url = https://github.com/gabime/spdlog

View File

@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.0.0)
include(ExternalProject)
project(wxhelper VERSION 1.0.0)
@ -15,14 +16,15 @@ file(GLOB CPP_FILES ${PROJECT_SOURCE_DIR}/src/*.cc ${PROJECT_SOURCE_DIR}/src/*
include_directories(${VCPKG_INSTALLED_DIR}/x86-windows/include ${PROJECT_SOURCE_DIR}/spdlog/include)
add_subdirectory(spdlog)
# add_subdirectory(3rd)
# add_subdirectory(source)
find_package(nlohmann_json CONFIG REQUIRED)
find_package(unofficial-mongoose CONFIG REQUIRED)
# find_package(spdlog CONFIG REQUIRED)
# find_package(minhook CONFIG REQUIRED)
find_package(spdlog CONFIG REQUIRED)
add_library(wxhelper SHARED ${CPP_FILES} )
@ -32,8 +34,8 @@ add_library(wxhelper SHARED ${CPP_FILES} )
target_link_libraries(wxhelper PRIVATE nlohmann_json::nlohmann_json)
target_link_libraries(wxhelper PRIVATE unofficial::mongoose::mongoose)
target_include_directories(wxhelper PRIVATE spdlog )
# target_link_libraries(wxhelper PRIVATE spdlog::spdlog spdlog::spdlog_header_only)
target_link_libraries(wxhelper PRIVATE spdlog::spdlog spdlog::spdlog_header_only)
# target_link_libraries(wxhelper PRIVATE minhook::minhook)
SET_TARGET_PROPERTIES(wxhelper PROPERTIES LINKER_LANGUAGE C

2
spdlog

@ -1 +1 @@
Subproject commit e4f92bed4880e682c54bff5b5092b4968cb807b3
Subproject commit ad0e89cbfb4d0c1ce4d097e134eb7be67baebb36