[CMake] create same executable under 2 different names

Crni Gorac cgorac at gmail.com
Fri Apr 18 12:06:37 EDT 2008


Is above possible with CMake?  I'd like to employ standard Unix trick
with my program - to appear under 2 names, and then to inspect argv[0]
and adjust its behavior accordingly.  It's development helper kind of
program, thus not installed, so I cannot use symlink-ing for that
purpose.  On the other side, if I create two executables using
ADD_EXECUTABLE() for each one, the source gets compiled twice...

Thanks.


More information about the CMake mailing list