[CMake] Re: different output location for targets?

Matthew Woehlke mw_triad at users.sourceforge.net
Mon Apr 23 11:30:07 EDT 2007


Hendrik Sattler wrote:
> 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

Huh, wouldn't have guessed that. Thanks, will try it.

-- 
Matthew
 > A: Yes.
 >> Q: Are you sure?
 >>> A: Because it reverses the logical flow of conversation.
 >>>> Q: Why is top posting annoying in email?



More information about the CMake mailing list