mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 09:31:34 +08:00
CMakeLists.txt minor improvments
This commit is contained in:
parent
459cd21070
commit
76fc166e11
@ -101,15 +101,18 @@ endif()
|
||||
# build binries
|
||||
#---------------------------------------------------------------------------------------
|
||||
if(SPDLOG_BUILD_EXAMPLES)
|
||||
message(STATUS "Generating examples")
|
||||
add_subdirectory(example)
|
||||
endif()
|
||||
|
||||
if(SPDLOG_BUILD_TESTS)
|
||||
message(STATUS "Generating tests")
|
||||
include(CTest)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
if(SPDLOG_BUILD_BENCH)
|
||||
message(STATUS "Generating benchmarks")
|
||||
add_subdirectory(bench)
|
||||
endif()
|
||||
|
||||
@ -117,6 +120,7 @@ endif()
|
||||
# install
|
||||
#---------------------------------------------------------------------------------------
|
||||
if (SPDLOG_INSTALL)
|
||||
message(STATUS "Generating install")
|
||||
set(project_config_in "${CMAKE_CURRENT_LIST_DIR}/cmake/spdlogConfig.cmake.in")
|
||||
set(project_config_out "${CMAKE_CURRENT_BINARY_DIR}/spdlogConfig.cmake")
|
||||
set(config_targets_file "spdlogConfigTargets.cmake")
|
||||
|
@ -4,8 +4,6 @@
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
project(spdlog_bench CXX)
|
||||
|
||||
message(STATUS "Generating benchmarks..")
|
||||
|
||||
if(NOT TARGET spdlog)
|
||||
# Stand-alone build
|
||||
find_package(spdlog CONFIG REQUIRED)
|
||||
|
@ -4,8 +4,6 @@
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
project(spdlog_examples CXX)
|
||||
|
||||
message(STATUS "Generating examples..")
|
||||
|
||||
if(NOT TARGET spdlog)
|
||||
# Stand-alone build
|
||||
find_package(spdlog REQUIRED)
|
||||
|
@ -1,5 +1,3 @@
|
||||
message(STATUS "Generating tests..")
|
||||
|
||||
set(SPDLOG_UTESTS_SOURCES
|
||||
test_errors.cpp
|
||||
test_file_helper.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user