2019-10-30 14:10:20 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libigl/libigl
|
2023-03-29 00:53:10 +08:00
|
|
|
REF 66b3ef2253e765d0ce0db74cec91bd706e5ba176 #2.4.0
|
|
|
|
SHA512 7014ffdaa160bfa2509fc283cb7176d7994a37f51509c7374659292efad076c8fb594f9f6990bab1aa5562d1f66e93403ea35a5bf2a924436560a2d4669ffcfd
|
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
|
|
|
|
upstream_fixes.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"
|
|
|
|
)
|
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
|
|
|
png LIBIGL_PNG
|
|
|
|
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
|
|
|
|
${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-04-12 13:55:59 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.GPL")
|