[CMake] Output run-time files to single directory

Mateusz Loskot mateusz at loskot.net
Thu Oct 1 17:00:16 EDT 2009


Michael Jackson wrote:
> # ---------- Setup output Directories -------------------------
> SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY
>   ${PROJECT_BINARY_DIR}/Bin )
> 
> # --------- Setup the Executable output Directory -------------
> SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY
>   ${PROJECT_BINARY_DIR}/Bin )
> 
> # --------- Setup the Executable output Directory -------------
> SET (CMAKE_ARCHIVE_OUTPUT_DIRECTORY
>   ${PROJECT_BINARY_DIR}/Bin )
> 
> 
> Put that in the top most CMakelists.txt file

Michael,

Thank you for the quick solution.
It is exactly what I was looking for.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the CMake mailing list