UseSSH2.cmake 352 B

123456789101112
  1. function(eth_apply TARGET REQUIRED)
  2. find_package (SSH2)
  3. eth_show_dependency(SSH2 ssh2)
  4. if (SSH2_FOUND)
  5. target_include_directories(${TARGET} SYSTEM PUBLIC ${SSH2_INCLUDE_DIRS})
  6. target_link_libraries(${TARGET} ${SSH2_LIBRARIES})
  7. elseif (NOT ${REQUIRED} STREQUAL "OPTIONAL")
  8. message(FATAL_ERROR "ssh2 library not found")
  9. endif()
  10. endfunction()