- function(eth_apply TARGET REQUIRED)
- # find_package (Gmp 6.0.0)
- find_package (Gmp)
- eth_show_dependency(GMP Gmp)
- if (GMP_FOUND)
- target_include_directories(${TARGET} SYSTEM PUBLIC ${GMP_INCLUDE_DIRS})
- target_link_libraries(${TARGET} ${GMP_LIBRARIES})
- elseif (NOT ${REQUIRED} STREQUAL "OPTIONAL")
- message(FATAL_ERROR "Gmp library not found")
- endif()
- endfunction()
|