mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-28 21:38:44 +08:00
34 lines
825 B
CMake
34 lines
825 B
CMake
cmake_minimum_required(VERSION 3.5.0)
|
|
project(etl_error_handler_unit_tests)
|
|
|
|
add_definitions(-DETL_DEBUG)
|
|
add_definitions(-DETL_THROW_EXCEPTIONS)
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/../../../include)
|
|
|
|
set(TEST_SOURCE_FILES
|
|
test_error_handler.cpp
|
|
)
|
|
|
|
add_executable(etl_tests
|
|
${TEST_SOURCE_FILES}
|
|
)
|
|
|
|
target_include_directories(etl_tests
|
|
PUBLIC
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
# Enable the 'make test' CMake target using the executable defined above
|
|
add_test(etl_error_handler_unit_tests etl_tests)
|
|
|
|
# Since ctest will only show you the results of the single executable
|
|
# define a target that will output all of the failing or passing tests
|
|
# as they appear from UnitTest++
|
|
add_custom_target(test_verbose COMMAND ${CMAKE_CTEST_COMMAND} --verbose)
|
|
|
|
|
|
#RSG
|
|
set_property(TARGET etl_tests PROPERTY CXX_STANDARD 17)
|
|
|