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
|
2022-02-23 03:46:39 +08:00
|
|
|
REF 9a08aaab6caee28300043c96e1ad3e6700f0f8fc # v.0.3.1
|
|
|
|
SHA512 09ca1072a3de2cc5c5ab6eeaa1b82014dcc6139992da84558e77fe4bfa42210ff9f7fa6ee7d7e6b2d4ac15fd7ae6286a6a56d8a72cce75fc73b91755bb831864
|
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
|
|
|
|