2018-03-14 22:24:39 +08:00
|
|
|
include(vcpkg_common_functions)
|
2018-05-15 00:53:12 +08:00
|
|
|
|
2018-09-05 07:20:46 +08:00
|
|
|
set(VERSION 7.0)
|
|
|
|
|
|
|
|
# Note: upstream GitLab instance at https://graphics.rwth-aachen.de:9000 often goes down
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "https://www.openmesh.org/media/Releases/${VERSION}/OpenMesh-${VERSION}.tar.gz"
|
|
|
|
FILENAME "OpenMesh-${VERSION}.tar.gz"
|
|
|
|
SHA512 29280c8fe7208d39bd923c4d0444a24463e36b95402e6a75f42adc27bc1b261df9113442f69e1001dc1a8b1198488069ffb049742dcf6eac6ac1ecf4f216fad8
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
2018-05-15 00:53:12 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2018-09-05 07:20:46 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
|
|
|
REF "${VERSION}"
|
2018-03-14 22:24:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
2018-05-15 00:53:12 +08:00
|
|
|
OPTIONS -DBUILD_APPS=OFF
|
|
|
|
# [TODO]: add apps as feature, requires qt5 and freeglut
|
2018-03-14 22:24:39 +08:00
|
|
|
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
|
|
|
# OPTIONS_RELEASE -DOPTIMIZE=1
|
|
|
|
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/OpenMesh/Tools/VDPM/xpm)
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openmesh RENAME copyright)
|