mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
glob .cpp in cmakelists
This commit is contained in:
parent
98dacff8e0
commit
425f137938
@ -145,10 +145,15 @@ message(STATUS "Build type: " ${CMAKE_BUILD_TYPE})
|
||||
# ---------------------------------------------------------------------------------------
|
||||
# Static/Shared library
|
||||
# ---------------------------------------------------------------------------------------
|
||||
set(SPDLOG_SRCS src/spdlog.cpp src/stdout_sinks.cpp src/color_sinks.cpp src/file_sinks.cpp src/async.cpp src/cfg.cpp)
|
||||
file(GLOB SPDLOG_SRCS
|
||||
src/*.cpp
|
||||
src/details/*.cpp
|
||||
src/sinks/*.cpp
|
||||
src/cfg/*.cpp
|
||||
)
|
||||
|
||||
if(NOT SPDLOG_USE_STD_FORMAT AND NOT SPDLOG_FMT_EXTERNAL AND NOT SPDLOG_FMT_EXTERNAL_HO)
|
||||
list(APPEND SPDLOG_SRCS src/bundled_fmtlib_format.cpp)
|
||||
list(APPEND SPDLOG_SRCS src/fmt/bundled_fmtlib_format.cpp)
|
||||
endif()
|
||||
|
||||
if(SPDLOG_BUILD_SHARED OR BUILD_SHARED_LIBS)
|
||||
|
Loading…
Reference in New Issue
Block a user