add_executable(test_cpu_6502 test_cpu_6502.c) target_link_libraries(test_cpu_6502 ${CHECK_LIBRARIES} pthread) add_test(NAME test_cpu_6502 COMMAND test_cpu_6502 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/tests)