[CMake] Building to a subdirectory UNDER Debug/Release/etc in a Visual Studio build

David Cole david.cole at kitware.com
Fri Jun 20 11:47:43 EDT 2008


ADD_CUSTOM_COMMAND to copy the modules to
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/modules" should
work...


On Fri, Jun 20, 2008 at 10:48 AM, Mike Arthur <mike at mikearthur.co.uk> wrote:

> Part 3 in my never-ending quest to replace our Visual-Studio-based build
> system with CMake has me tearing my hair out...
>
> I've set CMAKE_RUNTIME_OUTPUT_DIRECTORY to bin so everything is build
> correctly in bin/Debug or bin/Release depending on the project.
>
> What I'm trying to do now is get something built in bin/Debug/modules or
> bin/Release/modules or, if not built there, then at least copied there
> later.
>
> I, however, can't seem to find any way in CMake to allow me to do this.
>
> Setting CMAKE_RUNTIME_OUTPUT_DIRECTORY to bin/modules just puts the modules
> in
> bin/modules/Release or bin/modules/Debug.
>
> Any ideas before I go mad?
>
> Thanks guys!
>
> --
> Cheers,
> Mike Arthur
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080620/5847fb19/attachment.htm>


More information about the CMake mailing list