[CMake] Don't know how to handle this...
Christophe Dupre
duprec at scorec.rpi.edu
Sun Sep 18 21:30:20 EDT 2005
I'm not sure how to handle a specific case, and I hope that the
collective wisdom will provide a few pointers...
We have a library for which we use CMake to control the building
process. The last step we currently manually do, but which we'd like to
automate, is this:
We use Babel (http://www.llnl.gov/CASC/components/babel.html) to provide
binding for several programming languages. The way babel works is as
follows:
- an SIDL file describes the API in a language-independant way
- the 'babel' program is used to generate .h and .cc files based on the
SIDL file.
- the .cc are compiled and made into a shared library, which can be
called by client programs.
The thing here is that the actual name and number of generated .cc files
is not known in advance (depends on the SIDL file and the version of
babel used). All that we now for sure is that all the .cc files in a
given directory need to be compiled and linked together. To help the
process, babel generates a babel.make file that defines 'make' variables
with all the files - not a big help for CMake, though.
This seems to be a case of 'one program generates multiple files'
described in the CMake book, except that here the program generates all
the files at once with unpredictable names, so the example of VTK doing
the TCL wrapping cannot be used as-is.
Thanks in advance for any help provided.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20050918/e15bbcc7/signature.pgp
More information about the CMake
mailing list