Added header dependency tests.

This commit is contained in:
Kevin M. Godby
2016-05-04 19:24:17 -05:00
parent 5550eb9753
commit 2666b6cbf1
5 changed files with 97 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(spdlog INTERFACE)
option(SPDLOG_BUILD_EXAMPLES "Build examples" OFF)
option(SPDLOG_BUILD_TESTS "Build tests" OFF)
target_include_directories(
spdlog
@@ -20,11 +21,17 @@ target_include_directories(
"$<INSTALL_INTERFACE:include>"
)
set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include")
if(SPDLOG_BUILD_EXAMPLES)
enable_testing()
add_subdirectory(example)
endif()
if(SPDLOG_BUILD_TESTS)
add_subdirectory(tests)
endif()
### Install ###
# * https://github.com/forexample/package-example
set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")