On 03/09/2012 21:59, Rui Maciel wrote:
I have a small project which includes a couple of parsers whose lexers
are generated by re2c. I intended to set cmake so that it could check
if re2c is present in the system, but after browsing through the docs
I've ended up empty-handed.
So, is there a way to set a cmake project so that it checks if a
tool/program/command is present in the build system? If there is a way
to run that check, can anyone provide an example?
find_program(RE2C_EXECUTABLE re2c)
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake