28 lines
645 B
CMake
28 lines
645 B
CMake
project(dhandy_unit_test CXX)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
int_conv_test.cpp
|
|
main.cpp
|
|
endianness_test.cpp
|
|
reversed_sized_array_test.cpp
|
|
bitfield_pack_test.cpp
|
|
resource_pool_test.cpp
|
|
version_test.cpp
|
|
tiger_test.cpp
|
|
)
|
|
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
|
|
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD_REQUIRED ON)
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
PRIVATE ${DUCKHANDY_SOURCE_DIR}/subprojects/Catch2/Catch2/single_include
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
PRIVATE duckhandy
|
|
)
|
|
|
|
add_test(
|
|
NAME DuckHandyTest
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
COMMAND ${PROJECT_NAME}
|
|
)
|