vcpkg/ports/nativefiledialog-extended/portfile.cmake

24 lines
632 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO btzy/nativefiledialog-extended
REF v${VERSION}
SHA512 B07231484C805AC1F96F49070E2A92B624B4FDB10C534482AF7484E23222ACAB5B2F1461B776CA892573D6930372518816155F604CA5DD12CFFEA5605D107758
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DNFD_BUILD_TESTS=OFF
-DNFD_PORTAL=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME nfd CONFIG_PATH lib/cmake/nfd)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")