mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 03:34:25 +03:00
Initial commit of Hyperscan
This commit is contained in:
24
examples/CMakeLists.txt
Normal file
24
examples/CMakeLists.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
find_library(PCAP_LIBRARY pcap)
|
||||
|
||||
if (NOT PCAP_LIBRARY)
|
||||
message(STATUS "Could not find libpcap - some examples will not be built")
|
||||
endif()
|
||||
|
||||
add_executable(simplegrep simplegrep.c)
|
||||
set_source_files_properties(simplegrep.c PROPERTIES COMPILE_FLAGS
|
||||
"-Wall -Wno-unused-parameter")
|
||||
target_link_libraries(simplegrep hs)
|
||||
|
||||
if (PCAP_LIBRARY)
|
||||
add_executable(pcapscan pcapscan.cc)
|
||||
set_source_files_properties(pcapscan.cc PROPERTIES COMPILE_FLAGS
|
||||
"-Wall -Wno-unused-parameter")
|
||||
target_link_libraries(pcapscan hs pcap)
|
||||
endif()
|
||||
|
||||
if (PCAP_LIBRARY)
|
||||
add_executable(patbench patbench.cc)
|
||||
set_source_files_properties(patbench.cc PROPERTIES COMPILE_FLAGS
|
||||
"-Wall -Wno-unused-parameter")
|
||||
target_link_libraries(patbench hs pcap)
|
||||
endif()
|
Reference in New Issue
Block a user