2020-05-16 05:11:26 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2019-09-04 05:45:31 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO eliasdaler/imgui-sfml
|
2021-11-18 04:30:39 +08:00
|
|
|
REF 9cc8c57a4565551087be0d9aeb3ae55490aa1207 #v2.4
|
|
|
|
SHA512 d44d85e44d17d05c4e21f71acbf5bf544364a9bbe4871be896edd29f9926948cd1ea7627b7d54524f7da64c494638fc126744ced57ea7997a4b712dd26eb6183
|
2019-09-04 05:45:31 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2019-09-11 04:52:21 +08:00
|
|
|
0001-fix_find_package.patch
|
2020-05-16 05:11:26 +08:00
|
|
|
004-fix-find-sfml.patch
|
2021-12-07 13:28:41 +08:00
|
|
|
005-fix-imtextureid-define.patch
|
2019-09-04 05:45:31 +08:00
|
|
|
)
|
|
|
|
|
2021-10-27 14:43:45 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-09-04 05:45:31 +08:00
|
|
|
)
|
2021-10-27 14:43:45 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-09-04 05:45:31 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-27 14:43:45 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME ImGui-SFML CONFIG_PATH lib/cmake/ImGui-SFML)
|
2020-05-16 05:11:26 +08:00
|
|
|
|
2021-10-27 14:43:45 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-05-16 05:11:26 +08:00
|
|
|
|
2021-10-27 14:43:45 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|