2017-01-15 06:57:15 +08:00
|
|
|
#header-only library
|
2017-07-01 01:49:54 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO USCiLab/cereal
|
2022-05-24 23:34:35 +08:00
|
|
|
REF v1.3.2
|
|
|
|
SHA512 98d306d6292789129675f1c5c5aedcb90cfcc1029c4482893a8f9b23f3c9755e5ed4762d7a528f215345cae6392e87cd8d89467115b6f031b41c8673d6b4b109
|
2019-11-06 04:09:18 +08:00
|
|
|
HEAD_REF master
|
2017-07-01 01:49:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2022-05-24 23:34:35 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-07-01 01:49:54 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DJUST_INSTALL_CEREAL=ON
|
2017-01-15 06:57:15 +08:00
|
|
|
)
|
2017-07-01 01:49:54 +08:00
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2022-02-23 05:18:00 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cereal)
|
2017-07-01 01:49:54 +08:00
|
|
|
|
|
|
|
# Clean
|
2022-05-24 23:34:35 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2017-01-15 06:57:15 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-05-24 23:34:35 +08:00
|
|
|
file(COPY "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|