[Liblas-commits] hg: more cmake for osgeo4w
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Jun 11 15:03:21 EDT 2010
changeset e53ca986b408 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=e53ca986b408
summary: more cmake for osgeo4w
diffstat:
cmake/modules/BuildOSGeo4W.cmake | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+), 0 deletions(-)
diffs (52 lines):
diff -r 561b920f3756 -r e53ca986b408 cmake/modules/BuildOSGeo4W.cmake
--- a/cmake/modules/BuildOSGeo4W.cmake Wed Jun 09 21:03:04 2010 -0500
+++ b/cmake/modules/BuildOSGeo4W.cmake Fri Jun 11 14:03:10 2010 -0500
@@ -27,6 +27,7 @@
${OSGEO4W_PYTHON_DIR})
+
add_custom_target(BuildOSGeo4WDirectories
COMMAND ${CMAKE_COMMAND} -E echo "Building OSGeo4W install directories")
@@ -45,5 +46,40 @@
endmacro(MAKE_OSGEO4W_DIRECTORIES)
+if (APPLE)
+ set(SO_EXT dylib)
+elseif(WIN32)
+ set(SO_EXT dll)
+else()
+ set(SO_EXT so)
+endif(APPLE)
+
+set(OSGEO4W_FILES
+ ${LIBLAS_BUILD_OUTPUT_DIRECTORY};${OSGEO4W_LIB_BIN_DIR}
+ ${libLAS_SOURCE_DIR};${OSGEO4W_DEVEL_INCLUDE_LIBLAS_DIR}
+ )
+
+add_custom_target(CopyOSGeo4WFiles
+ COMMAND ${CMAKE_COMMAND} -E echo "Copying OSGeo4W files...")
+
+add_dependencies( CopyOSGeo4WFiles BuildOSGeo4WDirectories )
+
+macro (COPY_OSGEO4W_DIRECTORIES source destination)
+
+ message(STATUS "Copying ${source} to ${destination}...")
+
+ STRING(REGEX REPLACE "/" "_" target "${destination}" )
+
+ add_custom_target(copy_${target}
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${source} ${destination})
+
+ add_dependencies( CopyOSGeo4WFiles copy_${target} )
+
+
+endmacro(COPY_OSGEO4W_DIRECTORIES source destination)
MAKE_OSGEO4W_DIRECTORIES()
+COPY_OSGEO4W_DIRECTORIES(${LIBLAS_BUILD_OUTPUT_DIRECTORY}/ ${OSGEO4W_LIB_BIN_DIR}/)
+COPY_OSGEO4W_DIRECTORIES(${libLAS_SOURCE_DIR}/include/liblas ${OSGEO4W_DEVEL_INCLUDE_LIBLAS_DIR}/)
+COPY_OSGEO4W_DIRECTORIES(${libLAS_SOURCE_DIR}/python/liblas/*.py ${OSGEO4W_PYTHON_DIR}/)
+
More information about the Liblas-commits
mailing list