2019-10-30 14:10:20 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libigl/libigl
|
2024-08-03 02:19:49 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 39b92ec4c2479a3c0a8e99b2890643c9d76a7e5b61b485c1a3a5f5abff1da4e62b67b879dbcf6e18a43f98172fc9f87f0a6c92b99e2a1900e6f1d2e809899b11
|
2019-10-30 14:10:20 +08:00
|
|
|
HEAD_REF master
|
2020-08-25 03:49:35 +08:00
|
|
|
PATCHES
|
2023-03-29 00:53:10 +08:00
|
|
|
dependencies.patch
|
2023-05-18 00:18:26 +08:00
|
|
|
install-extra-targets.patch
|
2019-10-30 14:10:20 +08:00
|
|
|
)
|
2023-04-12 13:55:59 +08:00
|
|
|
file(REMOVE
|
|
|
|
"${SOURCE_PATH}/cmake/find/FindGMP.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/find/FindMPFR.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/boost.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/catch2.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/cgal.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/eigen.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/embree.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/glad.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/glfw.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/gmp.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/gmp_mpfr.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/imgui.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/imguizmo.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/libigl_imgui_fonts.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/mpfr.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/stb.cmake"
|
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/tinyxml2.cmake"
|
2023-10-28 09:44:08 +08:00
|
|
|
"${SOURCE_PATH}/cmake/recipes/external/spectra.cmake"
|
2023-04-12 13:55:59 +08:00
|
|
|
)
|
2019-10-30 14:10:20 +08:00
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-10-15 08:49:18 +08:00
|
|
|
FEATURES
|
2023-04-12 13:55:59 +08:00
|
|
|
cgal LIBIGL_COPYLEFT_CGAL
|
2023-03-29 00:53:10 +08:00
|
|
|
embree LIBIGL_EMBREE
|
|
|
|
glfw LIBIGL_GLFW
|
|
|
|
imgui LIBIGL_IMGUI
|
2023-04-12 13:55:59 +08:00
|
|
|
opengl LIBIGL_OPENGL
|
2023-03-29 00:53:10 +08:00
|
|
|
xml LIBIGL_XML
|
2023-04-12 13:55:59 +08:00
|
|
|
# Features removed: missing binary libs / separate ports
|
|
|
|
comiso LIBIGL_COPYLEFT_COMISO
|
2023-03-29 00:53:10 +08:00
|
|
|
predicates LIBIGL_PREDICATES
|
2023-04-12 13:55:59 +08:00
|
|
|
tetgen LIBIGL_COPYLEFT_TETGEN
|
|
|
|
triangle LIBIGL_RESTRICTED_TRIANGLE
|
2019-10-30 14:10:20 +08:00
|
|
|
)
|
|
|
|
|
2023-04-12 13:55:59 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only
|
2021-10-15 08:49:18 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2023-04-12 13:55:59 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
2020-08-02 07:12:24 +08:00
|
|
|
-DLIBIGL_BUILD_TESTS=OFF
|
2023-03-29 00:53:10 +08:00
|
|
|
-DLIBIGL_BUILD_TUTORIALS=OFF
|
|
|
|
-DLIBIGL_INSTALL=ON
|
2023-04-12 13:55:59 +08:00
|
|
|
-DLIBIGL_RESTRICTED_MATLAB=OFF
|
|
|
|
-DLIBIGL_RESTRICTED_MOSEK=OFF
|
2023-04-06 07:58:06 +08:00
|
|
|
-DLIBIGL_USE_STATIC_LIBRARY=OFF
|
2023-03-29 00:53:10 +08:00
|
|
|
-DHUNTER_ENABLED=OFF
|
2023-10-28 09:44:08 +08:00
|
|
|
-DLIBIGL_SPECTRA=OFF
|
2023-03-29 00:53:10 +08:00
|
|
|
${ADDITIONAL_OPTIONS}
|
2019-10-30 14:10:20 +08:00
|
|
|
)
|
|
|
|
|
2021-10-15 08:49:18 +08:00
|
|
|
vcpkg_cmake_install()
|
2023-04-12 13:55:59 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/igl)
|
2019-10-30 14:10:20 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-03-29 00:53:10 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2023-05-18 00:18:26 +08:00
|
|
|
|
|
|
|
if(NOT LIBIGL_COPYLEFT_CGAL)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.MPL2")
|
|
|
|
else()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.MPL2" "${SOURCE_PATH}/LICENSE.GPL" COMMENT "GPL for targets in \"igl_copyleft::\" namespace.")
|
|
|
|
endif()
|