[CMake] How to handle EXECUTABLE and LIBRARY with the same name?
William A. Hoffman
billlist at nycap.rr.com
Wed Oct 4 08:58:18 EDT 2006
At 06:45 AM 10/4/2006, Eric Noulard wrote:
>In my project I have a library
>
>ADD_LIBRARY(tsp_ascii_writer ${ASCII_WRITER_LIB_SRC})
>
>and an executable with the same name
>
>ADD_EXECUTABLE(tsp_ascii_writer ${ASCII_WRITER_SRC})
The target names must be different.
However you can use the target property OUTPUT_NAME to
change the name of the output file.
-Bill
More information about the CMake
mailing list