2017-09-19 07:12:32 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nholthaus/units
|
2023-01-24 16:31:47 +08:00
|
|
|
REF v2.3.3
|
|
|
|
SHA512 40d803e6bb17f4bb46a0136c7753ae25a0d3ce352dbff3843b0c231e94eb8bade1de65d5b988589607fb12b11e4bfa762708a68839f2d7dccb45440672d09031
|
2017-09-19 07:12:32 +08:00
|
|
|
)
|
|
|
|
|
2023-01-24 16:31:47 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
2017-09-19 07:12:32 +08:00
|
|
|
)
|
|
|
|
|
2023-01-24 16:31:47 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-09-19 07:12:32 +08:00
|
|
|
|
2017-09-19 07:15:16 +08:00
|
|
|
# Handle copyright/readme/package files
|
2023-01-24 16:31:47 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2017-09-19 07:12:32 +08:00
|
|
|
|
2023-01-24 16:31:47 +08:00
|
|
|
# Remove unneeded directories
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/cmake")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|