Skip to content

Commit

Permalink
Update CMakeLists.txt with the recently added code for syntax files.
Browse files Browse the repository at this point in the history
  • Loading branch information
skvadrik committed Nov 17, 2023
1 parent af0b66d commit 18fbd93
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ include_directories(. "${CMAKE_CURRENT_BINARY_DIR}")
# WARNING: custom target that depends on autogenerated sources won't do here
# as its dependencies get built multiple times, which ruins parallel builds.
add_library(re2c_objects_autogen OBJECT
"${CMAKE_CURRENT_BINARY_DIR}/src/codegen/syntax_lexer.cc"
"${CMAKE_CURRENT_BINARY_DIR}/src/codegen/syntax_parser.cc"
"${CMAKE_CURRENT_BINARY_DIR}/src/parse/parser.cc"
"${CMAKE_CURRENT_BINARY_DIR}/src/parse/parser.h"
"${CMAKE_CURRENT_BINARY_DIR}/src/parse/lex.cc"
Expand All @@ -132,6 +134,7 @@ set(re2c_sources
src/codegen/pass2_generate.cc
src/codegen/pass3_fixup.cc
src/codegen/pass4_render.cc
src/codegen/syntax.cc
src/options/opt.cc
src/options/symtab.cc
src/nfa/re_to_nfa.cc
Expand Down Expand Up @@ -205,10 +208,15 @@ if (RE2C_BUILD_RE2RUST)
endif()

re2c_bootstrap_lexer("src/parse/lex.re" "src/parse/lex.cc" "src/parse/lex.h")
re2c_bootstrap_parser("src/parse/parser.ypp" "src/parse/parser.cc" "src/parse/parser.h")
re2c_bootstrap_lexer("src/parse/lex_conf.re" "src/parse/lex_conf.cc")
re2c_bootstrap_lexer("src/options/parse_opts.re" "src/options/parse_opts.cc")
re2c_bootstrap_lexer("src/msg/ver_to_vernum.re" "src/msg/ver_to_vernum.cc")
re2c_bootstrap_parser("src/parse/parser.ypp" "src/parse/parser.cc" "src/parse/parser.h")
re2c_bootstrap_lexer("src/codegen/syntax_lexer.re" "src/codegen/syntax_lexer.cc")
re2c_bootstrap_parser(
"src/codegen/syntax_parser.ypp"
"src/codegen/syntax_parser.cc"
"src/codegen/syntax_parser.h")

# docs
set(re2c_docs_sources
Expand Down

0 comments on commit 18fbd93

Please sign in to comment.