From 5cc688bc4d920dd46a965ea6438104a81fa4fc42 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 25 May 2022 13:07:12 -0400 Subject: [PATCH] Add External-Obj2Tiles.cmake --- SuperBuild/cmake/External-Obj2Tiles.cmake | 31 +++++++++++++++++++++++ opendm/ogctiles.py | 1 - 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 SuperBuild/cmake/External-Obj2Tiles.cmake diff --git a/SuperBuild/cmake/External-Obj2Tiles.cmake b/SuperBuild/cmake/External-Obj2Tiles.cmake new file mode 100644 index 00000000..739c02fc --- /dev/null +++ b/SuperBuild/cmake/External-Obj2Tiles.cmake @@ -0,0 +1,31 @@ +set(_proj_name obj2tiles) +set(_SB_BINARY_DIR "${SB_BINARY_DIR}/${_proj_name}") + +set(OBJ2TILES_VERSION v1.0.5) + +set(OBJ2TILES_ARCH "Linux64") +if (WIN32) +set(OBJ2TILES_ARCH "Win64") +elseif(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64") +set(OBJ2TILES_ARCH "LinuxArm") +endif() + + +ExternalProject_Add(${_proj_name} + PREFIX ${_SB_BINARY_DIR} + TMP_DIR ${_SB_BINARY_DIR}/tmp + STAMP_DIR ${_SB_BINARY_DIR}/stamp + #--Download step-------------- + DOWNLOAD_DIR ${SB_DOWNLOAD_DIR} + URL https://github.com/OpenDroneMap/Obj2Tiles/releases/download/${OBJ2TILES_VERSION}/Obj2Tiles-${OBJ2TILES_ARCH}.zip + SOURCE_DIR ${SB_SOURCE_DIR}/${_proj_name} + UPDATE_COMMAND "" + CONFIGURE_COMMAND "" + BUILD_IN_SOURCE 1 + BUILD_COMMAND "" + INSTALL_COMMAND ${CMAKE_COMMAND} -E copy ${SB_SOURCE_DIR}/${_proj_name}/Obj2Tiles ${SB_INSTALL_DIR}/bin + #--Output logging------------- + LOG_DOWNLOAD OFF + LOG_CONFIGURE OFF + LOG_BUILD OFF +) \ No newline at end of file diff --git a/opendm/ogctiles.py b/opendm/ogctiles.py index 771ec1ee..9c73ca9e 100644 --- a/opendm/ogctiles.py +++ b/opendm/ogctiles.py @@ -7,7 +7,6 @@ from opendm.utils import double_quote from opendm import io from opendm import log from opendm import system -from opendm import concurrency import fiona from shapely.geometry import shape