foot/emulator/tests/CMakeLists.txt
shylie 6007426eb3
Some checks failed
Test / build (push) Failing after 4s
Add vcd waveform tracing
2026-03-25 01:43:20 -04:00

28 lines
740 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})
set_target_properties(foot-emulator-test-${name} PROPERTIES CXX_STANDARD 20)
endfunction()
test(cnst-instruction)
test(bwng-instruction)
test(arng-instruction)
test(long-instruction)
test(bwor-instruction)
test(band-instruction)
test(bxor-instruction)
test(zrsh-instruction)
test(srsh-instruction)
test(zlsh-instruction)
test(clsh-instruction)
test(addi-instruction)
test(subt-instruction)
test(mult-instruction)
test(divi-instruction)
test(modu-instruction)