mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 18:29:37 +08:00
9fdd48c17d
* [imgui-sfml] Update to 2.6 * update version
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO eliasdaler/imgui-sfml
|
|
REF "v${VERSION}"
|
|
SHA512 c8f2ed21ad5dfac417474f0caed1c59105b7dd8bf2dcb1db3b1f46a4fb07cec3c199d6fda0ff05ec5040a18000a0168f1a8caa978dee356c2b6874b5b2e10ec4
|
|
HEAD_REF master
|
|
PATCHES
|
|
0001-fix_find_package.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DCMAKE_CXX_STANDARD=11
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ImGui-SFML)
|
|
file(READ "${CURRENT_PACKAGES_DIR}/share/imgui-sfml/ImGui-SFMLConfig.cmake" cmake_config)
|
|
string(PREPEND cmake_config [[
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(imgui CONFIG)
|
|
find_dependency(SFML COMPONENTS graphics system window)
|
|
]])
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/imgui-sfml/ImGui-SFMLConfig.cmake" "${cmake_config}")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|