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
|
2021-11-09 13:03:47 +08:00
|
|
|
REF c878c002109784c5d7d7dd51e94cec19a200ff79 # v.0.2.15
|
|
|
|
SHA512 7900263ac0cf815e31e2e6d632d4093f896a34d7842a81574c71e8883c6bbee3a75fa717b7fb0ac9a0c34a4e4e1bad855b7ea0374321745a43f3235b213da9f8
|
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
|
|
|
|