[CMAKE] Generate Flex and Bison files at build time

We have Flex and Bison distributed along with RosBE 2.2 so this should
not be a problem
This commit is contained in:
Victor Perevertkin 2021-01-28 06:36:00 +03:00
parent 91fceab36e
commit 5375e33490
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
44 changed files with 54 additions and 68683 deletions

View file

@ -10,6 +10,10 @@ if(MSVC)
endif()
endif()
FLEX_TARGET(p_scanner parser.l ${CMAKE_CURRENT_BINARY_DIR}/parser.yy.c)
BISON_TARGET(p_parser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.tab.c COMPILE_FLAGS "-p parser_")
ADD_FLEX_BISON_DEPENDENCY(p_scanner p_parser)
list(APPEND SOURCE
client.c
expr.c
@ -25,8 +29,8 @@ list(APPEND SOURCE
widl.c
write_msft.c
write_sltg.c
parser.yy.c
parser.tab.c
${FLEX_p_scanner_OUTPUTS}
${BISON_p_parser_OUTPUTS}
../port/getopt.c
../port/getopt1.c
../port/mkstemps.c)