mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
binpac: Initial, working CMake build added.
This commit is contained in:
parent
c8665318e6
commit
65668d3ea6
4 changed files with 189 additions and 1 deletions
101
tools/binpac/src/CMakeLists.txt
Normal file
101
tools/binpac/src/CMakeLists.txt
Normal file
|
@ -0,0 +1,101 @@
|
|||
find_package(FLEX REQUIRED)
|
||||
find_package(BISON REQUIRED)
|
||||
|
||||
bison_target(PACParser pac_parse.yy ${CMAKE_CURRENT_BINARY_DIR}/pac_parse.cc
|
||||
COMPILE_FLAGS "-t" HEADER ${CMAKE_CURRENT_BINARY_DIR}/pac_parse.h)
|
||||
flex_target(PACScanner pac_scan.ll ${CMAKE_CURRENT_BINARY_DIR}/pac_scan.cc)
|
||||
add_flex_bison_dependency(PACScanner PACParser)
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
set(binpac_SRCS
|
||||
${BISON_PACParser_OUTPUTS}
|
||||
${FLEX_PACScanner_OUTPUTS}
|
||||
pac_action.cc
|
||||
pac_analyzer.cc
|
||||
pac_array.cc
|
||||
pac_attr.cc
|
||||
pac_btype.cc
|
||||
pac_case.cc
|
||||
pac_conn.cc
|
||||
pac_context.cc
|
||||
pac_cstr.cc
|
||||
pac_datadep.cc
|
||||
pac_dataptr.cc
|
||||
pac_dataunit.cc
|
||||
pac_decl.cc
|
||||
pac_embedded.cc
|
||||
pac_enum.cc
|
||||
pac_expr.cc
|
||||
pac_exttype.cc
|
||||
pac_field.cc
|
||||
pac_flow.cc
|
||||
pac_func.cc
|
||||
pac_id.cc
|
||||
pac_inputbuf.cc
|
||||
pac_let.cc
|
||||
pac_param.cc
|
||||
pac_paramtype.cc
|
||||
pac_primitive.cc
|
||||
pac_record.cc
|
||||
pac_redef.cc
|
||||
pac_regex.cc
|
||||
pac_state.cc
|
||||
pac_strtype.cc
|
||||
pac_type.cc
|
||||
pac_typedecl.cc
|
||||
pac_withinput.cc
|
||||
pac_output.cc
|
||||
pac_utils.cc
|
||||
pac_exception.cc
|
||||
pac_main.cc
|
||||
pac_action.h
|
||||
pac_analyzer.h
|
||||
pac_array.h
|
||||
pac_attr.h
|
||||
pac_btype.h
|
||||
pac_case.h
|
||||
pac_cclass.h
|
||||
pac_common.h
|
||||
pac_conn.h
|
||||
pac_context.h
|
||||
pac_cstr.h
|
||||
pac_ctype.h
|
||||
pac_datadep.h
|
||||
pac_dataptr.h
|
||||
pac_dataunit.h
|
||||
pac_dbg.h
|
||||
pac_decl-inl.h
|
||||
pac_decl.h
|
||||
pac_embedded.h
|
||||
pac_enum.h
|
||||
pac_exception.h
|
||||
pac_expr.h
|
||||
pac_exttype.h
|
||||
pac_field.h
|
||||
pac_flow.h
|
||||
pac_func.h
|
||||
pac_id.h
|
||||
pac_inputbuf.h
|
||||
pac_let.h
|
||||
pac_number.h
|
||||
pac_output.h
|
||||
pac_param.h
|
||||
pac_paramtype.h
|
||||
pac_primitive.h
|
||||
pac_record.h
|
||||
pac_redef.h
|
||||
pac_regex.h
|
||||
pac_state.h
|
||||
pac_strtype.h
|
||||
pac_type.h
|
||||
pac_typedecl.h
|
||||
pac_utils.h
|
||||
pac_varfield.h
|
||||
pac_withinput.h
|
||||
)
|
||||
|
||||
add_executable(binpac ${binpac_SRCS})
|
||||
|
||||
target_link_libraries(binpac)
|
Loading…
Add table
Add a link
Reference in a new issue