2017-10-09 18:48:44 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-10-15 13:26:06 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2019-02-26 05:41:53 +08:00
|
|
|
|
2017-10-15 13:26:06 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ocornut/imgui
|
2019-05-09 08:51:44 +08:00
|
|
|
REF v1.70
|
|
|
|
SHA512 b1a0fba339a9b19a49316494e58eabacd250e85e8ee17552c03ed99f50886072c882979039f18139e504c4406cf31aea3e9ce391d4641318f0022fa9b51bb9c4
|
2017-10-15 13:26:06 +08:00
|
|
|
HEAD_REF master
|
2017-10-09 18:48:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DIMGUI_SKIP_HEADERS=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2018-01-04 19:46:21 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/imgui)
|
2017-10-09 18:48:44 +08:00
|
|
|
|
2018-11-27 07:27:42 +08:00
|
|
|
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/imgui/copyright COPYONLY)
|