2016-09-19 11:50:08 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-06-21 06:20:52 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO leethomason/tinyxml2
|
2018-11-19 14:10:53 +08:00
|
|
|
REF 7.0.1
|
|
|
|
SHA512 623cd7eff542d20b434a67111ac98110101c95a18767318bf906e5e56d8cc25622269f740f50477fe907a4c52d875b614cb6167f4760d42ab18dc55b9d4bf380
|
2017-06-21 06:20:52 +08:00
|
|
|
HEAD_REF master
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2016-09-29 08:05:56 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2017-06-21 06:20:52 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/tinyxml2")
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2016-09-19 11:50:08 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-06-21 06:20:52 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
|
2018-03-12 14:41:51 +08:00
|
|
|
file(COPY
|
|
|
|
${SOURCE_PATH}/readme.md
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml2
|
|
|
|
)
|
2016-09-19 11:50:08 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/tinyxml2/readme.md ${CURRENT_PACKAGES_DIR}/share/tinyxml2/copyright)
|