mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 19:39:00 +08:00
37 lines
1.0 KiB
CMake
37 lines
1.0 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO an-tao/drogon
|
|
REF v1.1.0
|
|
SHA512 00d7d64fc666b0b2c02afab899f622123883b62b274d33f3504da6250a6458fc56ab12b131c24f9a7e20284bc5c3604a4f2dd796f56ad00d454d9f8504d8f96e
|
|
HEAD_REF master
|
|
PATCHES
|
|
vcpkg.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)
|
|
# Copy drogon_ctl
|
|
vcpkg_copy_tools(TOOL_NAMES drogon_ctl
|
|
AUTO_CLEAN)
|
|
# # Remove includes in debug
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
# Copy pdb files
|
|
vcpkg_copy_pdbs()
|
|
|