vcpkg/ports/basisu/portfile.cmake

25 lines
648 B
CMake
Raw Normal View History

2019-07-19 05:01:08 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO BinomialLLC/basis_universal
REF "${VERSION}"
SHA512 7f7dd62741b4a3e13050233a2ed751e6108cde9eab7b05ea5882ded6ab49fe181cc30e795cf73f8fa625a71e77ae891fda5ea84e20b632b1397844d6539715b3
2019-07-19 05:01:08 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-07-19 05:01:08 +08:00
OPTIONS
-DBUILD_TESTS=OFF
)
vcpkg_cmake_install()
2019-07-19 05:01:08 +08:00
vcpkg_copy_pdbs()
2019-07-19 05:01:08 +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
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
2019-07-19 05:01:08 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")