Cmake: require Polyseed

This commit is contained in:
tobtoht 2022-05-24 09:18:23 +02:00
parent 9c722e56e6
commit 7fb9b4c31e
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
2 changed files with 6 additions and 5 deletions

View file

@ -107,11 +107,7 @@ message(STATUS "libzbar: libraries at ${ZBAR_LIBRARIES}")
add_subdirectory(contrib/monero-seed) add_subdirectory(contrib/monero-seed)
# Polyseed 16 word mnemonic seeds # Polyseed 16 word mnemonic seeds
find_path(POLYSEED_INCLUDE_DIR polyseed.h) find_package(Polyseed REQUIRED)
message(STATUS "POLYSEED PATH ${POLYSEED_INCLUDE_DIR}")
find_library(POLYSEED_LIBRARY polyseed)
message(STATUS "POLYSEED LIBARY ${POLYSEED_LIBRARY}")
# libzip # libzip
find_package(zlib CONFIG) find_package(zlib CONFIG)

5
cmake/FindPolyseed.cmake Normal file
View file

@ -0,0 +1,5 @@
find_path(POLYSEED_INCLUDE_DIR polyseed.h)
message(STATUS "POLYSEED PATH ${POLYSEED_INCLUDE_DIR}")
find_library(POLYSEED_LIBRARY polyseed)
message(STATUS "POLYSEED LIBARY ${POLYSEED_LIBRARY}")