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

Philip Lowman philip at yhbt.com
Fri Jun 20 15:50:54 EDT 2008


On Fri, Jun 20, 2008 at 11:47 AM, David Cole <david.cole at kitware.com> wrote:

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


You may also be able to use the PREFIX hack to change the location where the
target is generated.

IF(MSVC)
   SET_TARGET_PROPERTIES(foo PROPERTIES PREFIX "modules/")
ENDIF(MSVC)

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080620/a10f2178/attachment.htm>


More information about the CMake mailing list