2018-10-03 03:22:21 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KDE/kplotting
|
2022-11-30 20:03:25 +01:00
|
|
|
REF v5.98.0
|
|
|
|
SHA512 966b62cef7e617678d8ea63c68ff6e79db29a024ffa779a743e20ee643f9fcefe7af766fbb430ecfc2000ed1be9536ab0479d094fc8d899fcf5c0cd44f3d0302
|
2018-10-03 03:22:21 +02:00
|
|
|
HEAD_REF master
|
2017-08-28 05:22:40 +02:00
|
|
|
)
|
|
|
|
|
2021-09-17 17:20:35 +02:00
|
|
|
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
2021-12-17 01:29:39 -06:00
|
|
|
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
|
2021-09-17 17:20:35 +02:00
|
|
|
|
2021-11-26 08:36:46 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-12-17 01:29:39 -06:00
|
|
|
OPTIONS
|
2021-07-28 02:02:50 +02:00
|
|
|
-DBUILD_TESTING=OFF
|
2017-08-28 05:22:40 +02:00
|
|
|
)
|
|
|
|
|
2021-11-26 08:36:46 +01:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Plotting CONFIG_PATH lib/cmake/KF5Plotting)
|
2017-08-28 05:22:40 +02:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-26 08:36:46 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-12-16 19:08:38 +01:00
|
|
|
if(NOT VCPKG_BUILD_TYPE)
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/plugins" "${CURRENT_PACKAGES_DIR}/debug/plugins")
|
|
|
|
endif()
|
2021-11-26 08:36:46 +01:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/plugins" "${CURRENT_PACKAGES_DIR}/plugins")
|
2021-04-12 13:15:11 -04:00
|
|
|
|
2022-07-14 21:09:56 +02:00
|
|
|
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
|
|
|
|
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
|
2022-11-30 20:03:25 +01:00
|
|
|
|