Commit 76fc166e authored by gabime's avatar gabime

CMakeLists.txt minor improvments

parent 459cd210
...@@ -101,15 +101,18 @@ endif() ...@@ -101,15 +101,18 @@ endif()
# build binries # build binries
#--------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------
if(SPDLOG_BUILD_EXAMPLES) if(SPDLOG_BUILD_EXAMPLES)
message(STATUS "Generating examples")
add_subdirectory(example) add_subdirectory(example)
endif() endif()
if(SPDLOG_BUILD_TESTS) if(SPDLOG_BUILD_TESTS)
message(STATUS "Generating tests")
include(CTest) include(CTest)
add_subdirectory(tests) add_subdirectory(tests)
endif() endif()
if(SPDLOG_BUILD_BENCH) if(SPDLOG_BUILD_BENCH)
message(STATUS "Generating benchmarks")
add_subdirectory(bench) add_subdirectory(bench)
endif() endif()
...@@ -117,6 +120,7 @@ endif() ...@@ -117,6 +120,7 @@ endif()
# install # install
#--------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------
if (SPDLOG_INSTALL) if (SPDLOG_INSTALL)
message(STATUS "Generating install")
set(project_config_in "${CMAKE_CURRENT_LIST_DIR}/cmake/spdlogConfig.cmake.in") set(project_config_in "${CMAKE_CURRENT_LIST_DIR}/cmake/spdlogConfig.cmake.in")
set(project_config_out "${CMAKE_CURRENT_BINARY_DIR}/spdlogConfig.cmake") set(project_config_out "${CMAKE_CURRENT_BINARY_DIR}/spdlogConfig.cmake")
set(config_targets_file "spdlogConfigTargets.cmake") set(config_targets_file "spdlogConfigTargets.cmake")
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)
project(spdlog_bench CXX) project(spdlog_bench CXX)
message(STATUS "Generating benchmarks..")
if(NOT TARGET spdlog) if(NOT TARGET spdlog)
# Stand-alone build # Stand-alone build
find_package(spdlog CONFIG REQUIRED) find_package(spdlog CONFIG REQUIRED)
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)
project(spdlog_examples CXX) project(spdlog_examples CXX)
message(STATUS "Generating examples..")
if(NOT TARGET spdlog) if(NOT TARGET spdlog)
# Stand-alone build # Stand-alone build
find_package(spdlog REQUIRED) find_package(spdlog REQUIRED)
......
message(STATUS "Generating tests..")
set(SPDLOG_UTESTS_SOURCES set(SPDLOG_UTESTS_SOURCES
test_errors.cpp test_errors.cpp
test_file_helper.cpp test_file_helper.cpp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment