2022-12-29 04:38:56 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12)
|
2017-05-17 09:24:27 +08:00
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-06-27 06:06:30 +08:00
|
|
|
REPO libusb-win32/libusb-win32-releases
|
2022-12-29 04:38:56 +08:00
|
|
|
REF ${VERSION}
|
|
|
|
FILENAME "libusb-win32-src-${VERSION}.zip"
|
|
|
|
SHA512 972438b7465a22882bc91a1238291240ee3cdb09f374454a027d003b150656d4c262553104f74418bb49b4a7ca2f1a4f72d20e689fa3a7728881bafc876267f4
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-05-17 09:24:27 +08:00
|
|
|
|
2022-12-29 04:38:56 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2017-05-17 09:24:27 +08:00
|
|
|
|
2022-12-29 04:38:56 +08:00
|
|
|
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
2017-05-17 09:24:27 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-12-29 04:38:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-05-17 09:24:27 +08:00
|
|
|
|
2022-12-29 04:38:56 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING_LGPL.txt")
|