vcpkg/ports/rapidxml/portfile.cmake
Connor Fitzgerald 02511898db [rapidxml-ns] Add new port. (#5703)
* [rapidxml-ns] Add new port

* [rapidxml] Move headers out of include to prevent conflicts and clutter.

* [rapidxml-ns] Update SHA512

* [rapidxml-ns] Fix header installation

* [3fd] Fix header issue with rapidxml
2019-03-18 21:18:02 -07:00

17 lines
834 B
CMake

#header-only library
include(vcpkg_common_functions)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/rapidxml-1.13)
vcpkg_download_distfile(ARCHIVE
URLS "https://sourceforge.net/projects/rapidxml/files/rapidxml/rapidxml%201.13/rapidxml-1.13.zip/download"
FILENAME "rapidxml-1.13.zip"
SHA512 6c10583e6631ccdb0217d0a5381172cb4c1046226de6ef1acf398d85e81d145228e14c3016aefcd7b70a1db8631505b048d8b4f5d4b0dbf1811d2482eefdd265
)
vcpkg_extract_source_archive(${ARCHIVE})
# Handle copyright
file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidxml)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidxml/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidxml/copyright)
# Copy the header files
file(INSTALL ${SOURCE_PATH}/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/rapidxml FILES_MATCHING PATTERN "*.hpp")