[CMake] library and executable with the same name

Salvatore Iovene salvatore.iovene+cmake at googlemail.com
Wed Nov 14 07:48:50 EST 2007


On Nov 14, 2007 2:33 PM, tek <tek at moonitor.org> wrote:
> Hello,
>
> I have libfoo.so and an executable named foo, and I can't find out how to
> manage this situation. The RENAME option of INSTALL doesen't work on TARGETS,
> and if I name them both "foo", the library is installed twice. Is there a way
> to accomplish this?

Try changing the target name of the executable to foo_executable and
then TARGET_SET_PROPERTY(foo_executable PROPERTIES OUTPUT_NAME "foo")


-- 
Salvatore Iovene
http://www.iovene.com/
Key Fingerprint: 5647 944D D5AD 2E87 00B4  7D54 2864 359D FF20 16D8


More information about the CMake mailing list