+# We need libhogweed and libgmp to be able to do more than hash calculations
+pkg_check_modules(HOGWEED hogweed)
+if (HOGWEED_FOUND)
+ find_package(GMP)
+endif()
+if (GMP_FOUND)
+ set(HAVE_CRYPTO true)
+ target_include_directories(libonak SYSTEM PUBLIC
+ ${GMP_INCLUDE_DIRS} ${HOGWEED_INCLUDE_DIRS})
+ LIST(APPEND LIBONAK_LIBRARIES ${GMP_LIBRARY} ${HOGWEED_LIBRARIES})
+endif()
+