mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 11:44:28 +03:00
hsbench: add Hyperscan benchmarker
The hsbench tool provides an easy way to measure Hyperscan's performance for a particular set of patterns and corpus of data to be scanned.
This commit is contained in:
19
tools/CMakeLists.txt
Normal file
19
tools/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
find_package(Threads)
|
||||
|
||||
# remove some warnings
|
||||
if(CMAKE_CXX_FLAGS MATCHES "-Wmissing-declarations" )
|
||||
string(REPLACE "-Wmissing-declarations" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
endif()
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR})
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/util)
|
||||
|
||||
# add any subdir with a cmake file
|
||||
file(GLOB dirents RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *)
|
||||
foreach(e ${dirents})
|
||||
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${e} AND
|
||||
EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${e}/CMakeLists.txt)
|
||||
add_subdirectory(${e})
|
||||
endif ()
|
||||
endforeach ()
|
Reference in New Issue
Block a user