foot/emulator/tests/CMakeLists.txt
shylie 060ca1d3cd
All checks were successful
Test / build (push) Successful in 8s
Add more tests, prep for graphical output
2025-07-08 11:53:56 -04:00

20 lines
500 B
CMake

cmake_minimum_required(VERSION 3.20)
include(CTest)
function(test name)
add_executable(foot-emulator-test-${name} ${name}.cpp test-common.h)
target_link_libraries(foot-emulator-test-${name} PUBLIC foot-emulator)
add_test(NAME ${name} COMMAND foot-emulator-test-${name})
endfunction()
test(cnst-instruction)
test(bwng-instruction)
test(arng-instruction)
test(long-instruction)
test(bwor-instruction)
test(band-instruction)
test(bxor-instruction)
test(srsh-instruction)
test(zlsh-instruction)