mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 07:19:08 +08:00
66818c9f1d
``` Starting package 895/1846: hash-library:x86-windows Building package hash-library[core]:x86-windows... -- Note: hash-library only supports static library linkage. Building static library. -- Downloading https://github.com/stbrumme/hash-library/archive/hash_library_v8.tar.gz -> stbrumme-hash-library-hash_library_v8.tar.gz... -- Extracting source D:/downloads/stbrumme-hash-library-hash_library_v8.tar.gz -- Applying patch 001-fix-macos.patch -- Using source at D:/buildtrees/hash-library/src/library_v8-6124f7a6ce.clean -- Found external ninja('1.10.2'). -- Configuring x86-windows -- Building x86-windows-dbg -- Building x86-windows-rel -- Installing: D:/packages/hash-library_x86-windows/share/hash-library/copyright -- Performing post-build validation -- Performing post-build validation done Uploaded binaries to 1 HTTP remotes. Installing package hash-library[core]:x86-windows... The following files are already installed in D:/installed/x86-windows and are in conflict with hash-library:x86-windows Installed by czmq:x86-windows include/sha1.h Elapsed time for package hash-library:x86-windows: 3.227 s ```
46 lines
926 B
CMake
46 lines
926 B
CMake
cmake_minimum_required(VERSION 3.5.1)
|
|
project(hash-library CXX)
|
|
|
|
set(HEADERS
|
|
crc32.h
|
|
hash.h
|
|
hmac.h
|
|
keccak.h
|
|
md5.h
|
|
sha1.h
|
|
sha256.h
|
|
sha3.h
|
|
)
|
|
|
|
set(SRCS
|
|
crc32.cpp
|
|
keccak.cpp
|
|
md5.cpp
|
|
sha1.cpp
|
|
sha256.cpp
|
|
sha3.cpp
|
|
)
|
|
|
|
add_library(hash-library ${SRCS})
|
|
|
|
target_include_directories(hash-library PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include/hash-library>)
|
|
|
|
if(NOT DISABLE_INSTALL_HEADERS)
|
|
install(FILES ${HEADERS} DESTINATION include/hash-library)
|
|
endif()
|
|
|
|
install(
|
|
TARGETS hash-library
|
|
EXPORT unofficial-hash-library-targets
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
|
|
install(
|
|
EXPORT unofficial-hash-library-targets
|
|
FILE unofficial-hash-library-targets.cmake
|
|
NAMESPACE unofficial::
|
|
DESTINATION share/unofficial-hash-library
|
|
)
|