[CMake] Put bin|lib folders under Debug|Release folders

Bo Zhou bo.schwarzstein at gmail.com
Sun May 8 01:35:20 EDT 2011


Hello all,

I am dealing with a problem about the output path. At present I just do
like this,

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_INSTALL_PREFIX}/bin")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_INSTALL_PREFIX}/lib")

And in fact the full path will be
"${CMAKE_INSTALL_PREFIX}/bin/{Debug|Release}/", the all .exe .dll .pdb
files will be generated there.

Now I have a DLL target which should be in bin/plugins, I try a way
which generates {Debug|Release} folders under the bin folder, that's
unnecessary.

I prefer a more clear output directory structure like
${CMAKE_INSTALL_PREFIX}/{Debug|Release}/bin/plugin, how should I do ?

Thanks !

-- 
BR,
BZ

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bo_Schwarzstein.vcf
Type: text/x-vcard
Size: 320 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110508/98a5179b/attachment.vcf>


More information about the CMake mailing list