mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 08:37:50 +08:00
4425bf3548
* [implot] Initial port
Requires https://github.com/microsoft/vcpkg/pull/11919
* [implot] Use find_package instead of find_path function
* [implot] Update to 0.3 version
* Update CONTROL
* [implot] Add linkage check
* Update CMakeLists.txt
* Revert 962e30a662
* [implot] Fix INSTALL_INTERFACE path case and use find_package Config mode
Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com>
25 lines
671 B
CMake
25 lines
671 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO epezent/implot
|
|
REF v0.3
|
|
SHA512 28d25a76b725879ad796249edc87910fec721fcd43b80171947e00c4983a945f82f2b555f1794882b79c96a4497da982dc45695fed5eedcf6009f87c05576817
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS_DEBUG
|
|
-DIMPLOT_SKIP_HEADERS=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |