2019-11-20 23:56:19 +08:00
|
|
|
vcpkg_from_github(
|
2018-08-12 13:44:55 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-11-20 23:56:19 +08:00
|
|
|
REPO stiffstream/json_dto
|
2024-01-13 02:21:18 +08:00
|
|
|
REF "v.${VERSION}"
|
2024-02-01 08:30:34 +08:00
|
|
|
SHA512 18e135c5a45c4421e6ae17955e042056890270717963008c4e0cba94f6dfe240fa7ea84991319ff88359abf0688ca32ed7c9783e575eca4a20b5694558a49c3d
|
2018-05-19 02:03:15 +08:00
|
|
|
)
|
|
|
|
|
2021-10-07 18:30:31 +08:00
|
|
|
vcpkg_cmake_configure(
|
2018-05-19 02:03:15 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}/dev
|
|
|
|
OPTIONS
|
|
|
|
-DJSON_DTO_INSTALL=ON
|
|
|
|
-DJSON_DTO_TEST=OFF
|
|
|
|
-DJSON_DTO_SAMPLE=OFF
|
|
|
|
-DJSON_DTO_INSTALL_SAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2021-10-07 18:30:31 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-05-19 02:03:15 +08:00
|
|
|
|
2021-10-07 18:30:31 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/json-dto)
|
2018-05-19 02:03:15 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
|
|
|
|
# Handle copyright
|
2019-11-21 17:02:48 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2021-07-01 22:30:13 +08:00
|
|
|
|