set("@PROJECT_NAME@_@component@_DEPENDENCIES" @internal_dependencies@)
set("@PROJECT_NAME@_@component@_LIBRARIES" @libraries@)

set_property(DIRECTORY PROPERTY "@PROJECT_NAME_UPPERCASE@_@component@_FOUND" TRUE)
foreach(external_dep @external_dependencies@)
  include(${CMAKE_CURRENT_LIST_DIR}/DARTFind${external_dep}.cmake)

  string(TOUPPER ${external_dep} EXTERNAL_DEP_UPPER)
  if(NOT ${external_dep}_FOUND AND NOT ${EXTERNAL_DEP_UPPER}_FOUND)
    set_property(DIRECTORY PROPERTY @PROJECT_NAME_UPPERCASE@_@component@_FOUND FALSE)
    if(NOT @PROJECT_NAME_UPPERCASE@_FIND_QUIETLY)
      message(WARNING
        "Cannot retrieve @PROJECT_NAME@-@component@ because the dependency "
        "${external_dep} could not be found. This usually indicates a broken "
        "installation.")
    endif()
  endif()

endforeach()
