vcpkg/ports/cereal/portfile.cmake

30 lines
779 B
CMake
Raw Normal View History

2017-01-15 06:57:15 +08:00
#header-only library
2017-07-01 01:49:54 +08:00
2017-01-15 06:57:15 +08:00
include(vcpkg_common_functions)
2017-07-01 01:49:54 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO USCiLab/cereal
REF v1.2.2
SHA512 9567b2e19add9446b24f8afd122eea09ba6ecd1a090335cf0ab31fdc8f64c6c97daa3d9eaf0801c36a770737488e0eebf81d96d7b7a65deed30da6130f2d47eb
2017-08-08 23:45:59 +08:00
HEAD_REF develop
2017-07-01 01:49:54 +08:00
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
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()
vcpkg_fixup_cmake_targets(CONFIG_PATH "share/cmake/cereal")
# Clean
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
2017-01-15 06:57:15 +08:00
# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cereal)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cereal/LICENSE ${CURRENT_PACKAGES_DIR}/share/cereal/copyright)