add_executable(interrupt interrupt.cpp) target_link_libraries(interrupt ${EXTRA_LIBS}) add_test(interrupt ${CMAKE_CURRENT_BINARY_DIR}/interrupt) add_executable(name name.cpp) target_link_libraries(name ${EXTRA_LIBS}) add_test(name ${CMAKE_CURRENT_BINARY_DIR}/name) add_executable(format format.cpp) target_link_libraries(format ${EXTRA_LIBS}) add_test(format ${CMAKE_CURRENT_BINARY_DIR}/format)