This commit is contained in:
gabime
2019-03-23 13:31:57 +02:00
parent 043c4acc7e
commit 57a312cb1a
8 changed files with 157 additions and 0 deletions

View File

@@ -54,6 +54,8 @@ option(SPDLOG_BUILD_BENCH "Build benchmarks (Requires https://github.com/google/
option(SPDLOG_BUILD_TESTS "Build tests" ${SPDLOG_MASTER_PROJECT})
option(SPDLOG_FMT_EXTERNAL "Use external fmt library instead of bundled" OFF)
option(SPDLOG_INSTALL "Generate the install target." ${SPDLOG_MASTER_PROJECT})
option(SPDLOG_BUILD_LITE "Build spdlog lite" ${SPDLOG_MASTER_PROJECT})
if(SPDLOG_FMT_EXTERNAL AND NOT TARGET fmt::fmt)
find_package(fmt REQUIRED CONFIG)
@@ -86,6 +88,11 @@ if(SPDLOG_BUILD_BENCH)
add_subdirectory(bench)
endif()
if(SPDLOG_BUILD_LITE)
add_subdirectory(lite)
add_subdirectory(lite-example)
endif()
#---------------------------------------------------------------------------------------
# Install/export targets and files
#---------------------------------------------------------------------------------------