2019-07-18 15:15:56 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Neargye/nameof
|
2023-07-13 04:06:59 +08:00
|
|
|
REF "v${VERSION}"
|
2024-03-13 05:59:05 +08:00
|
|
|
SHA512 88eff4fb9a137c388b39d67eb9e213ed93e6a553dd1295d5db04c6fbc254f6df3da8800de2e0675f574bb3f83ae05141f71efe30ccdd4601a42cf19adaea6e79
|
2019-07-18 15:15:56 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-07-13 04:06:59 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
|
2022-08-06 14:47:46 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-18 15:15:56 +08:00
|
|
|
OPTIONS
|
|
|
|
-DNAMEOF_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
-DNAMEOF_OPT_BUILD_TESTS=OFF
|
2021-02-04 03:43:20 +08:00
|
|
|
-DNAMEOF_OPT_INSTALL=ON
|
2019-07-18 15:15:56 +08:00
|
|
|
)
|
|
|
|
|
2022-08-06 14:47:46 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-18 15:15:56 +08:00
|
|
|
|
2022-08-06 14:47:46 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-07-18 15:15:56 +08:00
|
|
|
|
2023-07-13 04:06:59 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2019-07-18 15:15:56 +08:00
|
|
|
|
2023-07-13 04:06:59 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|