[CMake] lib/exe output within various levels of the binary directory

Bill Hoffman bill.hoffman at kitware.com
Wed Jul 11 09:26:53 EDT 2007


Alexander Neundorf wrote:
> On Tuesday 10 July 2007 15:17, Jon W wrote:
>   
>> I am trying to get the following directory configuration for lib/exe
>> output within visual studio:
>>
>>   bin/Debug/aa.dll
>>   bin/Release/aa.dll
>>   bin/Release/models/bb.dll
>>   bin/Release/models/bb.dll
>>
>> The bin/Debug and bin/Release directories are the defaults when using
>> "bin" as the binary directory.  How can I get bb.dll and related files
>> to be generated in the bin/debug/models directory?
>>
>> If I set LIBRARY_OUTPUT_PATH, it will always append a Debug or Release
>> after whatever directory I specify.  For example,
>> bin/Release/models/Release.
>>
>> Does anybody know how to get files to be generated within different
>> levels within the "bin" directory?
>>     
>
> I think this is not possible, but I don't know if it's a limitation of MSVC or 
> the MSVC generator in cmake.
>   
You might be able to copy the dll's with a custom command after they are 
built.

-Bill



More information about the CMake mailing list