1
0
mirror of synced 2024-11-15 03:27:40 +01:00
ImHex/tests/algorithms/CMakeLists.txt

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 ()