foot/emulator/tests/CMakeLists.txt
2025-07-07 13:17:42 -04:00

12 lines
316 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)