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