[Liblas-commits] hg: start on some CMake for building osgeo4w builds
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Jun 9 22:03:16 EDT 2010
changeset 561b920f3756 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=561b920f3756
summary: start on some CMake for building osgeo4w builds
diffstat:
CMakeLists.txt | 1 +
cmake/modules/BuildOSGeo4W.cmake | 42 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 0 deletions(-)
diffs (58 lines):
diff -r 48da097391cf -r 561b920f3756 CMakeLists.txt
--- a/CMakeLists.txt Tue Jun 08 20:22:54 2010 -0500
+++ b/CMakeLists.txt Wed Jun 09 21:03:04 2010 -0500
@@ -312,3 +312,4 @@
endif()
endif()
+include(BuildOSGeo4W)
diff -r 48da097391cf -r 561b920f3756 cmake/modules/BuildOSGeo4W.cmake
--- a/cmake/modules/BuildOSGeo4W.cmake Tue Jun 08 20:22:54 2010 -0500
+++ b/cmake/modules/BuildOSGeo4W.cmake Wed Jun 09 21:03:04 2010 -0500
@@ -4,4 +4,46 @@
#
###############################################################################
+MESSAGE(STATUS " Building osgeo4w binaries")
+set(OSGEO4W_DIR osgeo4w)
+set(OSGEO4W_LIB_DIR ${OSGEO4W_DIR}/lib)
+set(OSGEO4W_LIB_BIN_DIR ${OSGEO4W_DIR}/lib/bin)
+set(OSGEO4W_DEVEL_DIR ${OSGEO4W_DIR}/devel)
+set(OSGEO4W_DEVEL_INCLUDE_DIR ${OSGEO4W_DEVEL_DIR}/include)
+set(OSGEO4W_DEVEL_INCLUDE_LIBLAS_DIR ${OSGEO4W_DEVEL_INCLUDE_DIR}/liblas)
+set(OSGEO4W_DEVEL_LIB_DIR ${OSGEO4W_DEVEL_DIR}/lib)
+set(OSGEO4W_PYTHON_DIR ${OSGEO4W_DIR}/apps/python25/lib/site-packages/liblas)
+
+
+set(OSGEO4W_DIRECTORIES
+ ${OSGEO4W_DIR}
+ ${OSGEO4W_LIB_DIR}
+ ${OSGEO4W_LIB_BIN_DIR}
+ ${OSGEO4W_DEVEL_DIR}
+ ${OSGEO4W_DEVEL_INCLUDE_DIR}
+ ${OSGEO4W_DEVEL_INCLUDE_LIBLAS_DIR}
+ ${OSGEO4W_DEVEL_LIB_DIR}
+ ${OSGEO4W_PYTHON_DIR})
+
+
+add_custom_target(BuildOSGeo4WDirectories
+ COMMAND ${CMAKE_COMMAND} -E echo "Building OSGeo4W install directories")
+
+macro (MAKE_OSGEO4W_DIRECTORIES)
+
+ foreach(directory ${OSGEO4W_DIRECTORIES})
+
+ STRING(REGEX REPLACE "/" "_" target "${directory}" )
+
+ add_custom_target(${target}
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${directory} )
+
+ add_dependencies( BuildOSGeo4WDirectories ${target} )
+ endforeach()
+
+
+endmacro(MAKE_OSGEO4W_DIRECTORIES)
+
+
+MAKE_OSGEO4W_DIRECTORIES()
More information about the Liblas-commits
mailing list