mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 09:00:35 +08:00
33 lines
936 B
CMake
33 lines
936 B
CMake
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO an-tao/drogon
|
||
|
REF v1.0.0-beta18
|
||
|
SHA512 38d57e6b5cc43bd1ac07c980453dda1f4c23a8c78eca942dd531d20661d7f088fc0a3d0f4e7cedddf98bac5a32be0330911cbf839d4956e05ee0265a68c7faa6
|
||
|
HEAD_REF master
|
||
|
PATCHES
|
||
|
vcpkg.patch
|
||
|
drogon_ctl_install.patch
|
||
|
)
|
||
|
|
||
|
vcpkg_configure_cmake(
|
||
|
SOURCE_PATH ${SOURCE_PATH}
|
||
|
PREFER_NINJA
|
||
|
OPTIONS
|
||
|
-DBUILD_EXAMPLES=OFF
|
||
|
)
|
||
|
|
||
|
vcpkg_install_cmake()
|
||
|
|
||
|
# Fix CMake files
|
||
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/drogon)
|
||
|
|
||
|
# # Remove includes in debug
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||
|
# Handle copyright
|
||
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||
|
|
||
|
# Copy pdb files
|
||
|
vcpkg_copy_pdbs()
|
||
|
|
||
|
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/drogon)
|