summaryrefslogtreecommitdiff
path: root/regress/CMakeLists.txt
blob: 0314c38f7161f1341f37ef9b4e66a39a0486e3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (c) 2018 Yubico AB. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

add_custom_target(regress ALL)

macro(add_regress_test NAME SOURCES)
	add_executable(${NAME} ${SOURCES})
	target_link_libraries(${NAME} fido2_shared)
	add_custom_command(TARGET regress POST_BUILD COMMAND ${NAME}
		DEPENDS ${NAME})
endmacro()

add_regress_test(regress_cred cred.c)
add_regress_test(regress_assert assert.c)
add_regress_test(regress_dev dev.c)