UseGmp.cmake 372 B

123456789101112
  1. function(eth_apply TARGET REQUIRED)
  2. # find_package (Gmp 6.0.0)
  3. find_package (Gmp)
  4. eth_show_dependency(GMP Gmp)
  5. if (GMP_FOUND)
  6. target_include_directories(${TARGET} SYSTEM PUBLIC ${GMP_INCLUDE_DIRS})
  7. target_link_libraries(${TARGET} ${GMP_LIBRARIES})
  8. elseif (NOT ${REQUIRED} STREQUAL "OPTIONAL")
  9. message(FATAL_ERROR "Gmp library not found")
  10. endif()
  11. endfunction()