mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 11:49:00 +08:00
34 lines
1001 B
CMake
34 lines
1001 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO xiaozhuai/imageinfo
|
|
REF f20f3f99e3a5d936043512516248664a4f1f110a # committed on 2024-02-21
|
|
SHA512 34a62472900e22f6cf0c1bc070245a283252d8ea7ccfaa01e38350180205b8d5116d433602957cca634bf5a6364bb432ca1c064255393d027cf61cfe90271411
|
|
HEAD_REF master
|
|
)
|
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
tools IMAGEINFO_BUILD_TOOLS
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DIMAGEINFO_BUILD_INSTALL=ON
|
|
-DIMAGEINFO_BUILD_TESTS=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup()
|
|
if("tools" IN_LIST FEATURES)
|
|
vcpkg_copy_tools(TOOL_NAMES imageinfo AUTO_CLEAN)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|