diff options
Diffstat (limited to 'fuzz/CMakeLists.txt')
-rw-r--r-- | fuzz/CMakeLists.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/fuzz/CMakeLists.txt b/fuzz/CMakeLists.txt new file mode 100644 index 0000000..ad30aa3 --- /dev/null +++ b/fuzz/CMakeLists.txt | |||
@@ -0,0 +1,44 @@ | |||
1 | # Copyright (c) 2019 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 | |||
5 | list(APPEND COMPAT_SOURCES | ||
6 | ../openbsd-compat/strlcpy.c | ||
7 | ../openbsd-compat/strlcat.c | ||
8 | ) | ||
9 | |||
10 | list(APPEND COMMON_SOURCES | ||
11 | mutator_aux.c | ||
12 | uniform_random.c | ||
13 | ) | ||
14 | |||
15 | |||
16 | # fuzz_cred | ||
17 | add_executable(fuzz_cred fuzz_cred.c ${COMMON_SOURCES} ${COMPAT_SOURCES}) | ||
18 | target_compile_options(fuzz_cred PRIVATE ${FUZZ_LDFLAGS}) | ||
19 | set_target_properties(fuzz_cred PROPERTIES LINK_FLAGS ${FUZZ_LDFLAGS}) | ||
20 | target_link_libraries(fuzz_cred fido2_shared) | ||
21 | |||
22 | # fuzz_assert | ||
23 | add_executable(fuzz_assert fuzz_assert.c ${COMMON_SOURCES} ${COMPAT_SOURCES}) | ||
24 | target_compile_options(fuzz_assert PRIVATE ${FUZZ_LDFLAGS}) | ||
25 | set_target_properties(fuzz_assert PROPERTIES LINK_FLAGS ${FUZZ_LDFLAGS}) | ||
26 | target_link_libraries(fuzz_assert fido2_shared) | ||
27 | |||
28 | # fuzz_mgmt | ||
29 | add_executable(fuzz_mgmt fuzz_mgmt.c ${COMMON_SOURCES} ${COMPAT_SOURCES}) | ||
30 | target_compile_options(fuzz_mgmt PRIVATE ${FUZZ_LDFLAGS}) | ||
31 | set_target_properties(fuzz_mgmt PROPERTIES LINK_FLAGS ${FUZZ_LDFLAGS}) | ||
32 | target_link_libraries(fuzz_mgmt fido2_shared) | ||
33 | |||
34 | # fuzz_credman | ||
35 | add_executable(fuzz_credman fuzz_credman.c ${COMMON_SOURCES} ${COMPAT_SOURCES}) | ||
36 | target_compile_options(fuzz_credman PRIVATE ${FUZZ_LDFLAGS}) | ||
37 | set_target_properties(fuzz_credman PROPERTIES LINK_FLAGS ${FUZZ_LDFLAGS}) | ||
38 | target_link_libraries(fuzz_credman fido2_shared) | ||
39 | |||
40 | # fuzz_bio | ||
41 | add_executable(fuzz_bio fuzz_bio.c ${COMMON_SOURCES} ${COMPAT_SOURCES}) | ||
42 | target_compile_options(fuzz_bio PRIVATE ${FUZZ_LDFLAGS}) | ||
43 | set_target_properties(fuzz_bio PROPERTIES LINK_FLAGS ${FUZZ_LDFLAGS}) | ||
44 | target_link_libraries(fuzz_bio fido2_shared) | ||