mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 19:19:00 +08:00
b10c0ba13e
* Added basic info to ptc-print port. * Formatting json file. * Trying to add master branch instead of main. * Trying to add master branch instead of main. * Update git-tree. * CI baseline update. * Update ports/ptc-print/usage Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com> * Update ports/ptc-print/usage Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com> * CI baseline update. * Update ports/ptc-print/portfile.cmake Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com> * Update. * Update in usage file. * Formatting update. * Update. Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>
29 lines
865 B
CMake
29 lines
865 B
CMake
# 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(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
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/ptc-print" RENAME copyright)
|