2018-09-18 16:35:50 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO msteinbeck/tinyspline
|
2024-04-02 04:46:44 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 e81d95e9fa7ec33b70d541695ab18b8e9c2a92e7c66877aa9957526e2ac144558b47409e1a1b721f7702a8462a22f360d1ec96b0023db108da13f8c37b8c0c20
|
2018-09-18 16:35:50 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-14 05:08:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DTINYSPLINE_BUILD_EXAMPLES=OFF
|
|
|
|
-DTINYSPLINE_BUILD_TESTS=OFF
|
|
|
|
-DTINYSPLINE_BUILD_DOCS=OFF
|
|
|
|
-DTINYSPLINE_WARNINGS_AS_ERRORS=OFF
|
|
|
|
-DTINYSPLINE_INSTALL_LIBRARY_DIR=lib
|
2018-09-18 16:35:50 +08:00
|
|
|
)
|
|
|
|
|
2021-10-14 05:08:56 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/tinyspline DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
2021-11-26 16:58:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME tinysplinecxx CONFIG_PATH lib/cmake/tinysplinecxx)
|
2021-10-14 05:08:56 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2018-09-18 16:35:50 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2021-10-14 05:08:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2018-09-18 16:35:50 +08:00
|
|
|
endif()
|
|
|
|
|
2021-10-14 05:08:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-09-18 16:35:50 +08:00
|
|
|
|
2021-10-14 05:08:56 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|