Mark,

The build location for libraries can be configured with LIBRARY_OUTPUT_PATH, 
and the build location for executables can be configured with 
EXECUTABLE_OUTPUT_PATH.  I use the following lines in my projects:

SET(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin")
SET(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/lib")

To put your executable and libraries in C:\test, I would suggest using the 
INSTALL command (cmake --help-command INSTALL).  After building, you would 
just need to run the install target to move your executables and libraries 
out of the build directory and into the install directory of choice.  The 
install directory is configured with the variable CMAKE_INSTALL_PREFIX.

Justin

On Wednesday 24 October 2007 10:49:37 Mark Wyszomierski wrote:
> Hi,
>
> Is there some way to create an additional target for built binaries?
> Besides the default location (not sure where that's defined
> actually...) I'd like to have my projects all dump their build exes or
> libraries into 'C:\test' for example. Is it possible?
>
> Thanks,
> Mark
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to