[CMake] different output location for targets?

Hendrik Sattler post at hendrik-sattler.de
Sat Apr 21 05:14:02 EDT 2007


Am Samstag 21 April 2007 02:05 schrieb Matthew Woehlke:
> I'm trying to adapt an existing build system that wants to put all its
> targets in e.g. ${CMAKE_BINARY_DIR}/foo, even though the targets live in
> many source directories. How can I do this?
>
> I'm thinking something with the OUTPUT_NAME target property, but I'm not
> seeing how to build this correctly (lib prefix, suffix, etc.).

http://www.cmake.org/Wiki/CMake_Useful_Variables
will help you:
EXECUTABLE_OUTPUT_PATH
LIBRARY_OUTPUT_PATH

HS


More information about the CMake mailing list