| 
									
										
										
										
											2023-01-17 17:36:59 +01:00
										 |  |  | if (NOT FTXUI_BUILD_TESTS_FUZZER)
 | 
					
						
							| 
									
										
										
										
											2023-01-14 20:37:42 +01:00
										 |  |  |   return()
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-26 15:14:27 +02:00
										 |  |  | set(CMAKE_C_COMPILER clang)
 | 
					
						
							|  |  |  | set(CMAKE_CXX_COMPILER clang++)
 | 
					
						
							| 
									
										
										
										
											2021-07-17 15:53:25 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-31 17:13:48 +02:00
										 |  |  | function(fuzz source)
 | 
					
						
							|  |  |  |   set(name "ftxui-${source}")
 | 
					
						
							| 
									
										
										
										
											2021-07-17 15:53:25 +02:00
										 |  |  |   add_executable(${name} | 
					
						
							| 
									
										
										
										
											2023-03-31 17:13:48 +02:00
										 |  |  |     src/ftxui/component/${source}.cpp
 | 
					
						
							| 
									
										
										
										
											2021-07-17 15:53:25 +02:00
										 |  |  |   )
 | 
					
						
							| 
									
										
										
										
											2023-03-31 17:13:48 +02:00
										 |  |  |   target_include_directories(${name} PRIVATE src)
 | 
					
						
							|  |  |  |   target_link_libraries(${name} PRIVATE component)
 | 
					
						
							|  |  |  |   target_compile_options(${name} PRIVATE -fsanitize=fuzzer,address)
 | 
					
						
							|  |  |  |   target_link_libraries(${name} PRIVATE -fsanitize=fuzzer,address)
 | 
					
						
							| 
									
										
										
										
											2023-05-25 19:34:34 +02:00
										 |  |  |   target_compile_features(${name} PRIVATE cxx_std_17)
 | 
					
						
							| 
									
										
										
										
											2021-07-17 15:53:25 +02:00
										 |  |  | endfunction(fuzz)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | fuzz(terminal_input_parser_test_fuzzer)
 | 
					
						
							|  |  |  | fuzz(component_fuzzer)
 |