mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 04:59:00 +08:00
e85cafa30d
* Initial port * Add to baseline * Usage * update hash * Update to fixed version * Update json * Disallow uwp * rename to ctstraffic * Only build release Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Remove copy_pdbs Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Add line at end Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Update hash * Update ports/ctstraffic/portfile.cmake Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Update hash --------- Co-authored-by: Sam Yun <samyun@microsoft.com> Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
30 lines
885 B
CMake
30 lines
885 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO microsoft/ctsTraffic
|
|
REF 88a415197951912fc70e440b31cad8d4ff4ea68a
|
|
SHA512 152ee25d1ba70c68c5bae61ee08d1d2905efd28a10c48672de852c8ee9d0964a9202814cdcc40bca712ef69f952630509810827226861dad16516f5e0827d879
|
|
HEAD_REF master
|
|
)
|
|
|
|
set(VCPKG_BUILD_TYPE release) # Windows port only includes tools.
|
|
|
|
include("${CURRENT_PORT_DIR}/prepare_for_build.cmake")
|
|
prepare_for_build("${SOURCE_PATH}")
|
|
|
|
vcpkg_list(SET MSBUILD_OPTIONS
|
|
"/p:UseVcpkg=yes"
|
|
)
|
|
|
|
vcpkg_msbuild_install(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
PROJECT_SUBPATH ctsTraffic/ctsTraffic.vcxproj
|
|
OPTIONS
|
|
${MSBUILD_OPTIONS}
|
|
)
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|