21 lines
599 B
CMake
21 lines
599 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(algorithms_test)
|
|
|
|
|
|
# Add new tests here #
|
|
set(AVAILABLE_TESTS
|
|
TestSucceeding
|
|
TestFailing
|
|
)
|
|
|
|
|
|
add_executable(algorithms_test source/hash.cpp source/main.cpp include/tests.hpp)
|
|
target_include_directories(algorithms_test PRIVATE include)
|
|
target_link_libraries(algorithms_test libimhex)
|
|
|
|
set_target_properties(algorithms_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
|
|
|
foreach (test IN LISTS AVAILABLE_TESTS)
|
|
add_test(NAME "Algorithms/${test}" COMMAND algorithms_test "${test}" WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
|
|
endforeach () |