2017-04-12 12:54:55 +00:00
|
|
|
project(dhandy_unit_test CXX)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
2021-05-29 20:51:49 +00:00
|
|
|
int_conv_test.cpp
|
2017-04-12 12:54:55 +00:00
|
|
|
main.cpp
|
2017-06-21 19:53:27 +00:00
|
|
|
endianness_test.cpp
|
2018-10-12 23:44:38 +00:00
|
|
|
reversed_sized_array_test.cpp
|
2018-11-20 08:56:43 +00:00
|
|
|
bitfield_pack_test.cpp
|
2018-11-26 22:28:28 +00:00
|
|
|
resource_pool_test.cpp
|
2021-04-22 11:34:05 +00:00
|
|
|
version_test.cpp
|
2021-05-28 22:34:39 +00:00
|
|
|
tiger_test.cpp
|
2017-04-12 12:54:55 +00:00
|
|
|
)
|
2018-07-21 22:32:27 +00:00
|
|
|
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
|
2017-04-12 12:54:55 +00:00
|
|
|
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
2022-06-07 14:41:49 +00:00
|
|
|
PRIVATE ${DUCKHANDY_SOURCE_DIR}/subprojects/Catch2/Catch2/single_include
|
2017-04-12 12:54:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
PRIVATE duckhandy
|
|
|
|
)
|
|
|
|
|
|
|
|
add_test(
|
|
|
|
NAME DuckHandyTest
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMAND ${PROJECT_NAME}
|
|
|
|
)
|