[CMake] How to call another build tool from CMake?

ing. A. Kleibeuker kleibeuk at natlab.research.philips.com
Wed Apr 12 03:09:26 EDT 2006


I want to call the build target of an existing project that
has an another build system.

Within CMakeLists.txt I can specify an ADD_CUSTOM_COMMAND
that calls the build target of the other build system but
how do I garantee that this is only executed during the
build?

...and when I do call the clean target?
E.g.
I want to call: "/bin/my_other_build_system build_all" in case I build my code with: make
and: "/bin/my_other_build_system clean_everything" in case I build my code with: make clean

Another thingy, how do I setup the proper dependencies in my
cmake project to the library that is produced by the my_other_build_system?


Regards,
Andre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060412/17e9e608/attachment.htm


More information about the CMake mailing list