1# Copyright (c) 2018 Yubico AB. All rights reserved. 2# Use of this source code is governed by a BSD-style 3# license that can be found in the LICENSE file. 4 5add_custom_target(regress ALL) 6 7macro(add_regress_test NAME SOURCES) 8 add_executable(${NAME} ${SOURCES}) 9 target_link_libraries(${NAME} fido2_shared) 10 add_custom_command(TARGET regress POST_BUILD COMMAND ${NAME} 11 DEPENDS ${NAME}) 12endmacro() 13 14add_regress_test(regress_cred cred.c) 15add_regress_test(regress_assert assert.c) 16add_regress_test(regress_dev dev.c) 17