[CMake] cmake, lex & yacc
Brandon Van Every
bvanevery at gmail.com
Mon Jul 30 11:43:15 EDT 2007
On 7/30/07, Timur Ivanov <timur.ivanov at gmail.com> wrote:
>
> Now I want to port all of that to cmake but can't find how to express
> dependences for yacc and lex sources, that is if .y or .l file changes
> proper .c file will be regenerated by yacc or lex.
You want ADD_CUSTOM_COMMAND. There's no inherent CMake support for
yacc and lex, you have to roll your own. Chicken has extensive,
commented, tutorialized examples of how to drive an unsupported
language from CMake. http://www.call-with-current-continuation.org
Cheers,
Brandon Van Every
More information about the CMake
mailing list