Debian Codegraph @

tests/fuzz/CMakeLists.txt

raw
1 # Copyright (c) 2014-2022, The Monero Project
2 #
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms, with or without modification, are
6 # permitted provided that the following conditions are met:
7 #
8 # 1. Redistributions of source code must retain the above copyright notice, this list of
9 # conditions and the following disclaimer.
10 #
11 # 2. Redistributions in binary form must reproduce the above copyright notice, this list
12 # of conditions and the following disclaimer in the documentation and/or other
13 # materials provided with the distribution.
14 #
15 # 3. Neither the name of the copyright holder nor the names of its contributors may be
16 # used to endorse or promote products derived from this software without specific
17 # prior written permission.
18 #
19 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
20 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
22 # THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
27 # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 monero_add_minimal_executable(block_fuzz_tests block.cpp fuzzer.cpp)
30 target_link_libraries(block_fuzz_tests
31 PRIVATE
32 cryptonote_core
33 p2p
34 epee
35 device
36 ${CMAKE_THREAD_LIBS_INIT}
37 ${EXTRA_LIBRARIES}
38 $ENV{LIB_FUZZING_ENGINE})
39 set_property(TARGET block_fuzz_tests
40 PROPERTY
41 FOLDER "tests")
42
43 monero_add_minimal_executable(transaction_fuzz_tests transaction.cpp fuzzer.cpp)
44 target_link_libraries(transaction_fuzz_tests
45 PRIVATE
46 cryptonote_core
47 p2p
48 epee
49 device
50 ${CMAKE_THREAD_LIBS_INIT}
51 ${EXTRA_LIBRARIES}
52 $ENV{LIB_FUZZING_ENGINE})
53 set_property(TARGET transaction_fuzz_tests
54 PROPERTY
55 FOLDER "tests")
56
57 monero_add_minimal_executable(signature_fuzz_tests signature.cpp fuzzer.cpp)
58 target_link_libraries(signature_fuzz_tests
59 PRIVATE
60 wallet
61 cryptonote_core
62 p2p
63 epee
64 device
65 ${CMAKE_THREAD_LIBS_INIT}
66 ${EXTRA_LIBRARIES}
67 $ENV{LIB_FUZZING_ENGINE})
68 set_property(TARGET signature_fuzz_tests
69 PROPERTY
70 FOLDER "tests")
71
72 monero_add_minimal_executable(cold-outputs_fuzz_tests cold-outputs.cpp fuzzer.cpp)
73 target_link_libraries(cold-outputs_fuzz_tests
74 PRIVATE
75 wallet
76 cryptonote_core
77 p2p
78 epee
79 device
80 ${CMAKE_THREAD_LIBS_INIT}
81 ${EXTRA_LIBRARIES}
82 $ENV{LIB_FUZZING_ENGINE})
83 set_property(TARGET cold-outputs_fuzz_tests
84 PROPERTY
85 FOLDER "tests")
86
87 monero_add_minimal_executable(cold-transaction_fuzz_tests cold-transaction.cpp fuzzer.cpp)
88 target_link_libraries(cold-transaction_fuzz_tests
89 PRIVATE
90 wallet
91 cryptonote_core
92 p2p
93 epee
94 device
95 ${CMAKE_THREAD_LIBS_INIT}
96 ${EXTRA_LIBRARIES}
97 $ENV{LIB_FUZZING_ENGINE})
98 set_property(TARGET cold-transaction_fuzz_tests
99 PROPERTY
100 FOLDER "tests")
101
102 monero_add_minimal_executable(load-from-binary_fuzz_tests load_from_binary.cpp fuzzer.cpp)
103 target_link_libraries(load-from-binary_fuzz_tests
104 PRIVATE
105 common
106 epee
107 ${Boost_PROGRAM_OPTIONS_LIBRARY}
108 ${CMAKE_THREAD_LIBS_INIT}
109 ${EXTRA_LIBRARIES}
110 $ENV{LIB_FUZZING_ENGINE})
111 set_property(TARGET load-from-binary_fuzz_tests
112 PROPERTY
113 FOLDER "tests")
114
115 monero_add_minimal_executable(load-from-json_fuzz_tests load_from_json.cpp fuzzer.cpp)
116 target_link_libraries(load-from-json_fuzz_tests
117 PRIVATE
118 common
119 epee
120 ${Boost_PROGRAM_OPTIONS_LIBRARY}
121 ${CMAKE_THREAD_LIBS_INIT}
122 ${EXTRA_LIBRARIES}
123 $ENV{LIB_FUZZING_ENGINE})
124 set_property(TARGET load-from-json_fuzz_tests
125 PROPERTY
126 FOLDER "tests")
127
128 monero_add_minimal_executable(base58_fuzz_tests base58.cpp fuzzer.cpp)
129 target_link_libraries(base58_fuzz_tests
130 PRIVATE
131 common
132 epee
133 ${Boost_PROGRAM_OPTIONS_LIBRARY}
134 ${CMAKE_THREAD_LIBS_INIT}
135 ${EXTRA_LIBRARIES}
136 $ENV{LIB_FUZZING_ENGINE})
137 set_property(TARGET base58_fuzz_tests
138 PROPERTY
139 FOLDER "tests")
140
141 monero_add_minimal_executable(parse-url_fuzz_tests parse_url.cpp fuzzer.cpp)
142 target_link_libraries(parse-url_fuzz_tests
143 PRIVATE
144 epee
145 ${Boost_REGEX_LIBRARY}
146 ${Boost_PROGRAM_OPTIONS_LIBRARY}
147 ${Boost_SYSTEM_LIBRARY}
148 ${CMAKE_THREAD_LIBS_INIT}
149 ${EXTRA_LIBRARIES}
150 $ENV{LIB_FUZZING_ENGINE})
151 set_property(TARGET parse-url_fuzz_tests
152 PROPERTY
153 FOLDER "tests")
154
155 monero_add_minimal_executable(http-client_fuzz_tests http-client.cpp fuzzer.cpp)
156 target_link_libraries(http-client_fuzz_tests
157 PRIVATE
158 epee
159 ${Boost_THREAD_LIBRARY}
160 ${Boost_CHRONO_LIBRARY}
161 ${Boost_REGEX_LIBRARY}
162 ${Boost_PROGRAM_OPTIONS_LIBRARY}
163 ${Boost_SYSTEM_LIBRARY}
164 ${CMAKE_THREAD_LIBS_INIT}
165 ${EXTRA_LIBRARIES}
166 $ENV{LIB_FUZZING_ENGINE})
167 set_property(TARGET http-client_fuzz_tests
168 PROPERTY
169 FOLDER "tests")
170
171 monero_add_minimal_executable(levin_fuzz_tests levin.cpp fuzzer.cpp)
172 target_link_libraries(levin_fuzz_tests
173 PRIVATE
174 common
175 epee
176 ${Boost_THREAD_LIBRARY}
177 ${Boost_CHRONO_LIBRARY}
178 ${Boost_REGEX_LIBRARY}
179 ${Boost_PROGRAM_OPTIONS_LIBRARY}
180 ${CMAKE_THREAD_LIBS_INIT}
181 ${EXTRA_LIBRARIES}
182 $ENV{LIB_FUZZING_ENGINE})
183 set_property(TARGET levin_fuzz_tests
184 PROPERTY
185 FOLDER "tests")
186
187 monero_add_minimal_executable(bulletproof_fuzz_tests bulletproof.cpp fuzzer.cpp)
188 target_link_libraries(bulletproof_fuzz_tests
189 PRIVATE
190 common
191 epee
192 ${Boost_THREAD_LIBRARY}
193 ${Boost_CHRONO_LIBRARY}
194 ${Boost_REGEX_LIBRARY}
195 ${Boost_PROGRAM_OPTIONS_LIBRARY}
196 ${CMAKE_THREAD_LIBS_INIT}
197 ${EXTRA_LIBRARIES}
198 $ENV{LIB_FUZZING_ENGINE})
199 set_property(TARGET bulletproof_fuzz_tests
200 PROPERTY
201 FOLDER "tests")
202
203 monero_add_minimal_executable(tx-extra_fuzz_tests tx-extra.cpp fuzzer.cpp)
204 target_link_libraries(tx-extra_fuzz_tests
205 PRIVATE
206 cryptonote_basic
207 common
208 epee
209 ${Boost_THREAD_LIBRARY}
210 ${Boost_CHRONO_LIBRARY}
211 ${Boost_REGEX_LIBRARY}
212 ${Boost_PROGRAM_OPTIONS_LIBRARY}
213 ${Boost_SYSTEM_LIBRARY}
214 ${CMAKE_THREAD_LIBS_INIT}
215 ${EXTRA_LIBRARIES}
216 $ENV{LIB_FUZZING_ENGINE})
217 set_property(TARGET tx-extra_fuzz_tests
218 PROPERTY
219 FOLDER "tests")
220
221 monero_add_minimal_executable(utf8_fuzz_tests utf8.cpp fuzzer.cpp)
222 target_link_libraries(utf8_fuzz_tests
223 PRIVATE
224 common
225 epee
226 ${Boost_THREAD_LIBRARY}
227 ${Boost_CHRONO_LIBRARY}
228 ${CMAKE_THREAD_LIBS_INIT}
229 ${EXTRA_LIBRARIES}
230 $ENV{LIB_FUZZING_ENGINE})