2017-05-04 22:03:53 +00:00
|
|
|
project(tawashi_unittest CXX)
|
|
|
|
|
2017-05-05 08:48:46 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
2017-05-04 22:03:53 +00:00
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
check.cpp
|
2017-05-06 01:01:05 +00:00
|
|
|
test_ini_file.cpp
|
2017-05-05 08:48:46 +00:00
|
|
|
test_settings_bag.cpp
|
2017-05-04 22:03:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PRIVATE ${TAWASHI_SOURCE_ROOT}/lib/Catch/single_include
|
|
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
PRIVATE tawashi_implem
|
|
|
|
)
|
|
|
|
|
|
|
|
add_test(
|
|
|
|
NAME TawashiUnitTest
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMAND ${PROJECT_NAME}
|
|
|
|
)
|