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-07-23 13:10:02 +08:00
|
|
|
SHA512 176556702dfa4092b3e1b0face065b66041346d3f9e0a96bd96fada4b8ba2a423e83d11501fc724341f831d6b3e8ce93c0fd2f4f1018b1bfb0423f70e68e8adb
|
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
|
|
|
|