From 7fb9b4c31e0cb0545ccb6c218a8c6fb6a0b430c3 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 24 May 2022 09:18:23 +0200 Subject: [PATCH] Cmake: require Polyseed --- CMakeLists.txt | 6 +----- cmake/FindPolyseed.cmake | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 cmake/FindPolyseed.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index bc36034..b02b31b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,11 +107,7 @@ message(STATUS "libzbar: libraries at ${ZBAR_LIBRARIES}") add_subdirectory(contrib/monero-seed) # Polyseed 16 word mnemonic seeds -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}") +find_package(Polyseed REQUIRED) # libzip find_package(zlib CONFIG) diff --git a/cmake/FindPolyseed.cmake b/cmake/FindPolyseed.cmake new file mode 100644 index 0000000..aa00788 --- /dev/null +++ b/cmake/FindPolyseed.cmake @@ -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}") \ No newline at end of file