[CMake] Check if a command exists?

Clifford Yapp cliffyapp at gmail.com
Mon Sep 3 20:59:39 EDT 2012


On Mon, Sep 3, 2012 at 3:59 PM, Rui Maciel <rui.maciel at gmail.com> 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.

Just an FYI - you may find the following CMake files helpful when
working with re2c:

http://brlcad.svn.sf.net/viewvc/brlcad/brlcad/trunk/misc/CMake/RE2C_Util.cmake
http://brlcad.svn.sf.net/viewvc/brlcad/brlcad/trunk/misc/CMake/FindRE2C.cmake

They could use some cleanup, but they may be a helpful starting point.

Cheers,
CY


More information about the CMake mailing list