AW: [CMake] library and executable with the same name

Gerhard Grimm ggrimm at detec.de
Wed Nov 14 07:46:26 EST 2007


This should work:
---

add_library(foo_lib SHARED foo_lib.c)
set_target_properties(foo_lib PROPERTIES OUTPUT_NAME foo)

add_executable(foo_exe foo_exe.c)
set_target_properties(foo_exe PROPERTIES OUTPUT_NAME foo)

---
Best regards

Gerhard


More information about the CMake mailing list