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

2008-06-23 Thread Mike Arthur
On Friday 20 June 2008 20:50:54 Philip Lowman wrote: > 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) Filthy but works nicely. Thanks! -- Cheers, Mike Arth

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

2008-06-20 Thread Philip Lowman
On Fri, Jun 20, 2008 at 11:47 AM, David Cole <[EMAIL PROTECTED]> 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.

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

2008-06-20 Thread Timenkov Yuri
On Friday 20 June 2008 19:55:55 Mike Arthur wrote: > On Friday 20 June 2008 16:51:15 Timenkov Yuri wrote: > > However, if you have complex deployment layout, you should prefer > > installing your project and running from target location. Trying to make > > in-source runs may be endless pain, while

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

2008-06-20 Thread Mike Arthur
On Friday 20 June 2008 16:51:15 Timenkov Yuri wrote: > However, if you have complex deployment layout, you should prefer > installing your project and running from target location. Trying to make > in-source runs may be endless pain, while installing your project may > require couple of seconds eac

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

2008-06-20 Thread Timenkov Yuri
On Friday 20 June 2008 18:48:18 Mike Arthur 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 depend

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

2008-06-20 Thread David Cole
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 <[EMAIL PROTECTED]> wrote: > Part 3 in my never-ending quest to replace our Visual-Studio-based build > system with CMake has me

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

2008-06-20 Thread Mike Arthur
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 somethi