mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 00:30:25 +08:00
43c6e295a0
* [many ports]switch to vcpkg-cmake / vckg-cmake-config part 4 * version * typo * version * typo * version * Remove PREFER_NINJA * version * deprecated vcpkg_extract_source_archive_ex * version * fix argument * version * More rename * version --------- Co-authored-by: jyu49 <yu_jack@apple.com>
33 lines
928 B
CMake
33 lines
928 B
CMake
# The upstream doesn't export any symbols
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO GameTechDev/PresentMon
|
|
REF 47669ad0efaddc9787772d5e4900734417b2c07c # 1.7.0
|
|
SHA512 fac2e2ca4d8476e2cdde7c3f77cf1881b7d7a9208387f12dbf07f3ea7f4012ce79602f4fedbf1e778871fd9ce898b101659a6f192de29dc6a4404213aee444be
|
|
HEAD_REF main
|
|
)
|
|
|
|
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
tools BUILD_TOOLS
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
OPTIONS_DEBUG
|
|
-DINSTALL_HEADERS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
if("tools" IN_LIST FEATURES)
|
|
vcpkg_copy_tools(TOOL_NAMES presentmon AUTO_CLEAN)
|
|
endif()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|