Add External-Obj2Tiles.cmake

pull/1464/head
Piero Toffanin 2022-05-25 13:07:12 -04:00
rodzic ecb82b9dd5
commit 5cc688bc4d
2 zmienionych plików z 31 dodań i 1 usunięć

Wyświetl plik

@ -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
)

Wyświetl plik

@ -7,7 +7,6 @@ from opendm.utils import double_quote
from opendm import io from opendm import io
from opendm import log from opendm import log
from opendm import system from opendm import system
from opendm import concurrency
import fiona import fiona
from shapely.geometry import shape from shapely.geometry import shape