c-ares-config.cmake 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
  2. ####### Any changes to this file will be overwritten by the next CMake run ####
  3. ####### The input file was c-ares-config.cmake.in ########
  4. get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
  5. macro(set_and_check _var _file)
  6. set(${_var} "${_file}")
  7. if(NOT EXISTS "${_file}")
  8. message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
  9. endif()
  10. endmacro()
  11. ####################################################################################
  12. set_and_check(c-ares_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")
  13. include("${CMAKE_CURRENT_LIST_DIR}/c-ares-config-version.cmake")
  14. include("${CMAKE_CURRENT_LIST_DIR}/c-ares-targets.cmake")
  15. set(c-ares_LIBRARY c-ares::cares)
  16. if(ON)
  17. if(NOT TARGET c-ares::cares_shared)
  18. add_library(c-ares::cares_shared INTERFACE IMPORTED)
  19. set_target_properties(c-ares::cares_shared PROPERTIES INTERFACE_LINK_LIBRARIES "c-ares::cares")
  20. endif()
  21. set(c-ares_SHARED_LIBRARY c-ares::cares_shared)
  22. endif()
  23. if(OFF)
  24. if(NOT TARGET c-ares::cares_static)
  25. add_library(c-ares::cares_static INTERFACE IMPORTED)
  26. set_target_properties(c-ares::cares_static PROPERTIES INTERFACE_LINK_LIBRARIES "c-ares::cares")
  27. endif()
  28. set(c-ares_STATIC_LIBRARY c-ares::cares_static)
  29. endif()