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}"
|
|
|
|
SHA512 476091f78f0c3b2dd0da2a83964fbf280259c163f058b2578eb17055fce0a2162e14bbea12e3bbdef93afda1f1c9f48a91e570f8f5e0f53a58a4f7188ebd437e
|
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
|
|
|
|