UseCryptopp.cmake 395 B

1234567891011
  1. function(eth_apply TARGET REQUIRED)
  2. find_package (CryptoPP 5.6.2 REQUIRED)
  3. eth_show_dependency(CRYPTOPP CryptoPP)
  4. if (CRYPTOPP_FOUND)
  5. target_include_directories(${TARGET} SYSTEM PUBLIC ${CRYPTOPP_INCLUDE_DIRS})
  6. target_link_libraries(${TARGET} ${CRYPTOPP_LIBRARIES})
  7. elseif (NOT ${REQUIRED} STREQUAL "OPTIONAL")
  8. message(FATAL_ERROR "Cryptopp library not found")
  9. endif()
  10. endfunction()