Added header-dependency tests.

This commit is contained in:
Kevin M. Godby
2016-06-17 00:55:05 -05:00
parent 33a185188c
commit 24e7b64b89
5 changed files with 97 additions and 2 deletions

19
tests/CMakeLists.txt Normal file
View File

@@ -0,0 +1,19 @@
#
# Tests
#
enable_testing()
# Build Catch unit tests
add_library(catch INTERFACE)
target_include_directories(catch INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB catch_tests LIST_DIRECTORIES false RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
add_executable(catch_tests ${catch_tests})
target_link_libraries(catch_tests spdlog)
add_test(NAME catch_tests COMMAND catch_tests)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")
# Ensure headers include their own dependencies
add_subdirectory(header_dependencies)