[Liblas-commits] laszip: add some missing header files

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Dec 30 10:03:44 EST 2010


details:   http://hg.liblas.orglaszip/rev/adc903683a4b
changeset: 95:adc903683a4b
user:      Howard Butler <hobu.inc at gmail.com>
date:      Thu Dec 30 09:02:59 2010 -0600
description:
add some missing header files
Subject: laszip: add logic or setting CMAKE_BUILD_TYPE to Debug by default if not set and not in the cache

details:   http://hg.liblas.orglaszip/rev/35628e849688
changeset: 96:35628e849688
user:      Howard Butler <hobu.inc at gmail.com>
date:      Thu Dec 30 09:03:28 2010 -0600
description:
add logic or setting CMAKE_BUILD_TYPE to Debug by default if not set and not in the cache

diffstat:

 CMakeLists.txt     |  16 +++++++++++++---
 src/CMakeLists.txt |   4 ++++
 2 files changed, 17 insertions(+), 3 deletions(-)

diffs (62 lines):

diff -r 16cbedc7335f -r 35628e849688 CMakeLists.txt
--- a/CMakeLists.txt	Mon Dec 27 12:44:10 2010 -0700
+++ b/CMakeLists.txt	Thu Dec 30 09:03:28 2010 -0600
@@ -8,9 +8,15 @@
 # laszip general settings
 project(laszip)
 
-# Name of C++ library
-set(LASZIP_LIB_NAME liblaszip)
+if(WIN32)
+  # Name of C++ library
+  set(LASZIP_LIB_NAME liblaszip)
+else()
+  # Name of C++ library
+  set(LASZIP_LIB_NAME laszip)
+endif()
 
+message(STATUS "Configuring LASzip library - ${LIBLAS_LIB_NAME}")
 
 set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
 
@@ -31,8 +37,12 @@
 
 # Default to release mode 
 if(NOT MSVC_IDE)
+  if(NOT CMAKE_BUILD_TYPE)
+
   set(CMAKE_BUILD_TYPE Release CACHE STRING 
-    "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel")
+    "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel" FORCE)
+  endif()
+    message(STATUS "Setting LASzip build type - ${CMAKE_BUILD_TYPE}")
 endif()
 
 # TODO: Still testing the output paths --mloskot
diff -r 16cbedc7335f -r 35628e849688 src/CMakeLists.txt
--- a/src/CMakeLists.txt	Mon Dec 27 12:44:10 2010 -0700
+++ b/src/CMakeLists.txt	Thu Dec 30 09:03:28 2010 -0600
@@ -26,12 +26,15 @@
   integercompressor.hpp
   lasreaditem.hpp
   lasreaditemcompressed_v1.hpp
+  lasreaditemrawendianswapped.hpp
   lasreaditemraw.hpp
   lasreadpoint.hpp
   laswriteitem.hpp
   laswriteitemcompressed_v1.hpp
+  laswriteitemrawendianswapped.hpp
   laswriteitemraw.hpp
   laswritepoint.hpp
+  mydefs.hpp
  )
 
 set(LASZIP_CPP
@@ -55,6 +58,7 @@
   ${LASZIP_HPP}
   ${LASZIP_CPP}
   )
+
 # Group source files for IDE source explorers (e.g. Visual Studio)
 source_group("CMake Files" FILES CMakeLists.txt)
 source_group("Header Files" FILES ${LASZIP_HPP})


More information about the Liblas-commits mailing list