Added ctest so we now have a 'make test' target for running tests.

This commit is contained in:
Kevin M. Godby 2016-05-04 19:55:00 -05:00
parent 1b444345ab
commit 846fdf9f5c
1 changed files with 3 additions and 3 deletions

View File

@ -23,13 +23,13 @@ target_include_directories(
set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include")
include(CTest)
if(SPDLOG_BUILD_EXAMPLES)
enable_testing()
add_subdirectory(example)
add_subdirectory(example)
endif()
if(SPDLOG_BUILD_TESTS)
add_subdirectory(tests)
add_subdirectory(tests)
endif()
### Install ###