[CMake] Flex/Bison in cmake

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Aug 23 10:29:17 EDT 2006


Von: Marco Canini <marco.canini at fastwebnet.it>
> Hi.
> I wonder if there's a "standard way"(tm) to deal with flex and bison in
> cmake.
> I tried to find something around but haven't found any solution.
> It seems that also KDE doesn't have anything to integrate flex & bison
> file generation inside cmake.
> I would also expect to have the modules FindFlex and FindBison in the
> default distribution.
> Any suggestion is welcome.
Attached a small script how I handle flex in one of my projects.
You can invoke it by

ADD_FLEX_FILES(myProject_SRCS myFlexFile1.ll myFlexFile2.ll)

bison should work the same way.

HTH
Christian
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Flex.cmake
Type: application/octet-stream
Size: 881 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060823/fc89a364/Flex.obj


More information about the CMake mailing list