mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 17:18:59 +08:00
2528a34051
* [ptc-print] Add the current usage * version * update usage and use usage * version * Use the officially exported usage * update version * miss the space * version
31 lines
860 B
CMake
31 lines
860 B
CMake
# header-only library
|
|
|
|
# Github config
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO JustWhit3/ptc-print
|
|
REF v1.4.0
|
|
SHA512 17218b096bc616a448d5c257b29f3e6c5a263cb56ff0361fb4be19206daf687c012cad9c6fb551aec1d16024eb563962cd15fccff0b7c3ab71cce23dc0846a95
|
|
HEAD_REF master
|
|
)
|
|
|
|
# Main commands
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DPTCPRINT_TESTS=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
|
|
# Move cmake configs
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME ptcprint CONFIG_PATH lib/cmake/ptcprint)
|
|
|
|
# Remove duplicate files
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib"
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
|
"${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
# Install license
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|