spdlog/tests/CMakeLists.txt

24 lines
569 B
CMake
Raw Normal View History

2018-01-27 18:24:14 -05:00
project(spdlog-utests)
2016-07-08 10:50:13 -04:00
enable_testing()
2018-01-27 18:24:14 -05:00
find_package(Threads REQUIRED)
2016-07-08 10:50:13 -04:00
2018-01-27 18:24:14 -05:00
set(SPDLOG_UTESTS_SOURCES
errors.cpp
file_helper.cpp
file_log.cpp
format.cpp
includes.h
registry.cpp
test_macros.cpp
utils.cpp
utils.h
main.cpp)
2016-07-08 10:50:13 -04:00
2018-01-27 18:24:14 -05:00
add_executable(${PROJECT_NAME} ${SPDLOG_UTESTS_SOURCES})
target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads)
target_link_libraries(${PROJECT_NAME} PRIVATE spdlog)
2016-07-08 10:50:13 -04:00
2018-01-27 18:24:14 -05:00
add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME})
2016-07-08 10:50:13 -04:00
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")