2018-10-24 00:47:58 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rollbear/trompeloeil
|
2023-09-24 13:08:55 +08:00
|
|
|
REF v${VERSION}
|
|
|
|
SHA512 c82a0ff3057056a79890b5880c1755900370a4406dc7e231f9b81545014dfd85a3cea90f90f01931083ef7528360ec7f5f14a4d6b2c5578c59e89b6d28edf110
|
2018-10-24 00:47:58 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-11-16 06:17:48 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-10-24 00:47:58 +08:00
|
|
|
)
|
|
|
|
|
2021-11-16 06:17:48 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-10-24 00:47:58 +08:00
|
|
|
|
2021-11-16 06:17:48 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/trompeloeil)
|
2018-10-24 00:47:58 +08:00
|
|
|
|
2021-11-16 06:17:48 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2018-10-24 00:47:58 +08:00
|
|
|
|
2021-11-16 06:17:48 +08:00
|
|
|
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/include/trompeloeil.hpp")
|
2018-10-24 00:47:58 +08:00
|
|
|
message(FATAL_ERROR "Main includes have moved. Please update the forwarder.")
|
|
|
|
endif()
|
|
|
|
|
2022-11-10 02:30:22 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt")
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|