diff options
Diffstat (limited to 'vcpkg/ports/cdt')
| -rw-r--r-- | vcpkg/ports/cdt/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/cdt/vcpkg.json | 25 |
2 files changed, 57 insertions, 0 deletions
diff --git a/vcpkg/ports/cdt/portfile.cmake b/vcpkg/ports/cdt/portfile.cmake new file mode 100644 index 0000000..60b1312 --- /dev/null +++ b/vcpkg/ports/cdt/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO artem-ogre/CDT + REF "${VERSION}" + SHA512 9b21553c6f377b257ef408d7f77e9b564175fdbe33dd5fdce6ddeb0aece258a5d77b00ad054d22dfa712952ba38a6717ef7b0a01b8950f97b073f6ebd81c3dd4 + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + "64-bit-index-type" CDT_USE_64_BIT_INDEX_TYPE + "as-compiled-library" CDT_USE_AS_COMPILED_LIBRARY +) + +if (NOT CDT_USE_AS_COMPILED_LIBRARY) + set(VCPKG_BUILD_TYPE "release") # header-only +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}/CDT" + OPTIONS + ${FEATURE_OPTIONS} +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH cmake) + +if (CDT_USE_AS_COMPILED_LIBRARY) + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +endif() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/cdt/vcpkg.json b/vcpkg/ports/cdt/vcpkg.json new file mode 100644 index 0000000..151da99 --- /dev/null +++ b/vcpkg/ports/cdt/vcpkg.json @@ -0,0 +1,25 @@ +{ + "name": "cdt", + "version": "1.4.1", + "description": "Constrained Delaunay Triangulation", + "homepage": "https://github.com/artem-ogre/CDT.git", + "license": "MPL-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "64-bit-index-type": { + "description": "64bits are used to store vertex/triangle index types" + }, + "as-compiled-library": { + "description": "Templates for float and double will be instantiated and compiled into a library" + } + } +} |