mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[rhash] Add target include directories and export unofficial config.cmake (#25171)
Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
This commit is contained in:
parent
233e6daf1d
commit
d6541fff4b
@ -8,7 +8,19 @@ add_definitions(-DRHASH_XVERSION="${RHASH_XVERSION}")
|
||||
add_library(rhash ${RHASH_SOURCES})
|
||||
set_target_properties(rhash PROPERTIES COMPILE_DEFINITIONS "IN_RHASH" DEFINE_SYMBOL "RHASH_EXPORTS")
|
||||
|
||||
install(TARGETS rhash RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
|
||||
target_include_directories(rhash INTERFACE $<INSTALL_INTERFACE:include>)
|
||||
|
||||
install(TARGETS rhash EXPORT unofficial-rhash-config
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
install(EXPORT unofficial-rhash-config
|
||||
FILE unofficial-rhash-config.cmake
|
||||
NAMESPACE unofficial::rhash::
|
||||
DESTINATION share/unofficial-rhash
|
||||
)
|
||||
|
||||
if(NOT RHASH_SKIP_HEADERS)
|
||||
install(FILES rhash.h rhash_torrent.h DESTINATION include)
|
||||
|
@ -17,5 +17,6 @@ vcpkg_cmake_configure(
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-rhash)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "rhash",
|
||||
"version": "1.4.2",
|
||||
"port-version": 1,
|
||||
"description": "C library for computing a wide variety of hash sums",
|
||||
"homepage": "https://github.com/rhash/RHash",
|
||||
"license": "0BSD",
|
||||
@ -9,6 +10,10 @@
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -6238,7 +6238,7 @@
|
||||
},
|
||||
"rhash": {
|
||||
"baseline": "1.4.2",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"rhasheq": {
|
||||
"baseline": "0.0.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "85de223344c08a1efc2f9f6ec6bcb69529851199",
|
||||
"version": "1.4.2",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "385025c1a8f84dfaf6035c2d730fb4ae0d8b16fd",
|
||||
"version": "1.4.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user