[Liblas-commits] hg: [cmake] Set common output directory for all build targets an...

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Sep 29 19:29:45 EDT 2009


changeset 42d56ee70cea in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=42d56ee70cea
summary: [cmake] Set common output directory for all build targets and split based  on build type (#52). Now, all binaries of particular build type should be generated in single place.

diffstat:

 CMakeLists.txt |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r ba20e857f478 -r 42d56ee70cea CMakeLists.txt
--- a/CMakeLists.txt	Tue Sep 29 23:11:16 2009 +0100
+++ b/CMakeLists.txt	Wed Sep 30 00:29:37 2009 +0100
@@ -35,7 +35,7 @@
 SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/build/cmake ${CMAKE_MODULE_PATH})
 
 ###############################################################################
-# Build type settings
+# General build settings
 
 IF(NOT CMAKE_BUILD_TYPE)
     SET(CMAKE_BUILD_TYPE Debug CACHE STRING
@@ -45,6 +45,18 @@
 
 SET(BUILD_PEDANTIC TRUE CACHE BOOL "Choose compilation in pedantic or relaxed mode")
 
+# TODO: Still testing the output paths --mloskot
+SET(LIBLAS_BUILD_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE})
+
+# Output directory in which to build RUNTIME target files.
+SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LIBLAS_BUILD_OUTPUT_DIRECTORY})
+
+# Output directory in which to build LIBRARY target files
+SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LIBLAS_BUILD_OUTPUT_DIRECTORY})
+
+# Output directory in which to build ARCHIVE target files.
+SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LIBLAS_BUILD_OUTPUT_DIRECTORY}) 
+
 ###############################################################################
 # Platform and compiler specific settings
 


More information about the Liblas-commits mailing list