2019-11-20 18:56:19 +03:00
|
|
|
vcpkg_from_github(
|
2018-08-12 08:44:55 +03:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2019-11-20 18:56:19 +03:00
|
|
|
REPO stiffstream/json_dto
|
2024-01-12 21:21:18 +03:00
|
|
|
REF "v.${VERSION}"
|
2024-07-23 08:10:02 +03:00
|
|
|
SHA512 176556702dfa4092b3e1b0face065b66041346d3f9e0a96bd96fada4b8ba2a423e83d11501fc724341f831d6b3e8ce93c0fd2f4f1018b1bfb0423f70e68e8adb
|
2018-05-18 21:03:15 +03:00
|
|
|
)
|
|
|
|
|
2021-10-07 13:30:31 +03:00
|
|
|
vcpkg_cmake_configure(
|
2018-05-18 21:03:15 +03: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 13:30:31 +03:00
|
|
|
vcpkg_cmake_install()
|
2018-05-18 21:03:15 +03:00
|
|
|
|
2021-10-07 13:30:31 +03:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/json-dto)
|
2018-05-18 21:03:15 +03:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
|
|
|
|
# Handle copyright
|
2019-11-21 12:02:48 +03:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2021-07-01 17:30:13 +03:00
|
|
|
|