mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 17:41:34 +08:00
Fixed Catch tests.
This commit is contained in:
parent
e10a2fca65
commit
2907001e22
@ -5,16 +5,14 @@
|
|||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
# Build Catch unit tests
|
# Build Catch unit tests
|
||||||
#function(add_catch_test _testname)
|
add_library(catch INTERFACE)
|
||||||
# add_executable(${_testname} ${_testname}.cpp)
|
target_include_directories(catch INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
# target_link_libraries(${_testname} Catch)
|
|
||||||
# add_test(NAME test_${_testname} COMMAND ${_testname})
|
file(GLOB catch_tests LIST_DIRECTORIES false RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
|
||||||
#endfunction()
|
add_executable(catch_tests ${catch_tests})
|
||||||
#
|
target_link_libraries(catch_tests spdlog)
|
||||||
#file(GLOB catch_tests LIST_DIRECTORIES false *.cpp)
|
add_test(NAME catch_tests COMMAND catch_tests)
|
||||||
#foreach(catch_test IN LIST catch_tests)
|
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")
|
||||||
# add_catch_test(${catch_test})
|
|
||||||
#endforeach()
|
|
||||||
|
|
||||||
# Ensure headers include their own dependencies
|
# Ensure headers include their own dependencies
|
||||||
add_subdirectory(header_dependencies)
|
add_subdirectory(header_dependencies)
|
||||||
|
Loading…
Reference in New Issue
Block a user