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