Details
-
Task
-
Resolution: Fixed
-
Major
-
None
Description
These functions should allow us to conveniently work on modules that use bison and flex source files.
Using widl as example:
Index: CMakeLists.txt
|
===================================================================
|
--- CMakeLists.txt (revision 68837)
|
+++ CMakeLists.txt (working copy)
|
@@ -12,6 +12,9 @@
|
list(APPEND SOURCE getopt.c)
|
endif()
|
|
+add_bison_files(parser.y)
|
+add_flex_files(parser.l)
|
+
|
list(APPEND SOURCE
|
client.c
|
expr.c
|
@@ -26,8 +29,8 @@
|
utils.c
|
widl.c
|
write_msft.c
|
- parser.yy.c
|
- parser.tab.c
|
+ ${CMAKE_CURRENT_BINARY_DIR}/parser.tab.c
|
+ ${CMAKE_CURRENT_BINARY_DIR}/parser.yy.c
|
port/mkstemps.c)
|
|