mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 19:47:43 +03:00
chimera: hybrid of Hyperscan and PCRE
This commit is contained in:
@@ -123,22 +123,58 @@ set_target_properties(unit-internal PROPERTIES COMPILE_FLAGS "${HS_CXX_FLAGS}")
|
||||
target_link_libraries(unit-internal hs corpusomatic)
|
||||
endif(NOT (RELEASE_BUILD OR FAT_RUNTIME))
|
||||
|
||||
#
|
||||
# build target to run unit tests
|
||||
#
|
||||
if (NOT RELEASE_BUILD)
|
||||
add_custom_target(
|
||||
unit
|
||||
COMMAND bin/unit-internal
|
||||
COMMAND bin/unit-hyperscan
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
DEPENDS unit-internal unit-hyperscan
|
||||
)
|
||||
else ()
|
||||
add_custom_target(
|
||||
unit
|
||||
COMMAND bin/unit-hyperscan
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
DEPENDS unit-hyperscan
|
||||
)
|
||||
if (BUILD_CHIMERA)
|
||||
# enable Chimera unit tests
|
||||
set(unit_chimera_SOURCES
|
||||
${gtest_SOURCES}
|
||||
chimera/allocators.cpp
|
||||
chimera/arg_checks.cpp
|
||||
chimera/bad_patterns.cpp
|
||||
chimera/compat.cpp
|
||||
chimera/main.cpp
|
||||
chimera/scan.cpp
|
||||
)
|
||||
add_executable(unit-chimera ${unit_chimera_SOURCES})
|
||||
target_link_libraries(unit-chimera chimera hs pcre)
|
||||
#
|
||||
# build target to run unit tests
|
||||
#
|
||||
if (NOT RELEASE_BUILD)
|
||||
add_custom_target(
|
||||
unit
|
||||
COMMAND bin/unit-internal
|
||||
COMMAND bin/unit-hyperscan
|
||||
COMMAND bin/unit-chimera
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
DEPENDS unit-internal unit-hyperscan unit-chimera
|
||||
)
|
||||
else ()
|
||||
add_custom_target(
|
||||
unit
|
||||
COMMAND bin/unit-hyperscan
|
||||
COMMAND bin/unit-chimera
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
DEPENDS unit-hyperscan unit-chimera
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
#
|
||||
# build target to run unit tests
|
||||
#
|
||||
if (NOT RELEASE_BUILD)
|
||||
add_custom_target(
|
||||
unit
|
||||
COMMAND bin/unit-internal
|
||||
COMMAND bin/unit-hyperscan
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
DEPENDS unit-internal unit-hyperscan
|
||||
)
|
||||
else ()
|
||||
add_custom_target(
|
||||
unit
|
||||
COMMAND bin/unit-hyperscan
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
DEPENDS unit-hyperscan
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user