vectorscan/tools/hsdump/CMakeLists.txt
Alex Coyte fae8d21127 Introduce hsdump development tool for producing information during compilation.
This tool is intended to assist Hyperscan developers with development and
debugging by providing insights into the generated bytecode.
2018-01-19 06:25:51 -05:00

20 lines
455 B
CMake

# dump support is required
if (NOT DUMP_SUPPORT)
return()
endif ()
if (WIN32)
return()
endif ()
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/util)
# only set these after all tests are done
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
add_executable(hsdump main.cpp)
target_link_libraries(hsdump hs expressionutil crosscompileutil)