vcpkg_from_github(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO planaria/tinynurbs
    REF c6f91227cd2200a3957a4424e44ec4cf0b87b55e
    SHA512 dc692c723ddb6ecdec8323235e048a77595e2b407d407463332f1c798fa44dfbd53d36165017ab6ef40472f65da160abcfdfe93f6901f23bc4c5ba411e9b89e4
)

vcpkg_cmake_configure(
    SOURCE_PATH ${SOURCE_PATH}
    OPTIONS
        -DTINYNURBS_USE_OWN_GLM=OFF
)

vcpkg_cmake_install()
vcpkg_copy_pdbs()

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug
                    ${CURRENT_PACKAGES_DIR}/lib
)
