2019-04-30 03:16:12 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO fallahn/tmxlite
|
2022-04-20 05:31:08 +08:00
|
|
|
REF v1.3.0
|
2019-04-30 03:16:12 +08:00
|
|
|
HEAD_REF master
|
2022-04-20 05:31:08 +08:00
|
|
|
SHA512 3D432152080F7FDDD14A150FF87C34932695C96D7F676399C7610FF373972223CE54C9483BD9A872FD53668C113E334FCBF8596AE21CFDAF83B6159C7287A4A3
|
2019-04-30 03:16:12 +08:00
|
|
|
)
|
|
|
|
|
2021-10-06 07:13:21 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/tmxlite"
|
2019-04-30 03:16:12 +08:00
|
|
|
)
|
|
|
|
|
2021-10-06 07:13:21 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-04-30 03:16:12 +08:00
|
|
|
|
2021-10-06 07:13:21 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-04-30 03:16:12 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2021-10-06 07:13:21 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2019-04-30 03:16:12 +08:00
|
|
|
endif()
|
|
|
|
|
2022-04-20 05:31:08 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|