2019-07-19 05:01:08 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-10-13 11:30:04 +08:00
|
|
|
REPO BinomialLLC/basis_universal
|
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 7f7dd62741b4a3e13050233a2ed751e6108cde9eab7b05ea5882ded6ab49fe181cc30e795cf73f8fa625a71e77ae891fda5ea84e20b632b1397844d6539715b3
|
2019-07-19 05:01:08 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-07-12 06:38:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-19 05:01:08 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2022-07-12 06:38:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-19 05:01:08 +08:00
|
|
|
|
2022-07-12 06:38:12 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-07-19 05:01:08 +08:00
|
|
|
|
2023-10-13 11:30:04 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES "basisu" AUTO_CLEAN)
|
|
|
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
2019-07-19 05:01:08 +08:00
|
|
|
# Remove unnecessary files
|
2023-10-13 11:30:04 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2019-07-19 05:01:08 +08:00
|
|
|
|
2023-10-13 11:30:04 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|