msgpack-config.cmake 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #.rst:
  2. # msgpack
  3. # -------
  4. #
  5. # The following import targets are created
  6. #
  7. # ::
  8. #
  9. # msgpackc-static
  10. # msgpackc
  11. #
  12. ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
  13. ####### Any changes to this file will be overwritten by the next CMake run ####
  14. ####### The input file was msgpack-config.cmake.in ########
  15. get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
  16. macro(set_and_check _var _file)
  17. set(${_var} "${_file}")
  18. if(NOT EXISTS "${_file}")
  19. message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
  20. endif()
  21. endmacro()
  22. macro(check_required_components _NAME)
  23. foreach(comp ${${_NAME}_FIND_COMPONENTS})
  24. if(NOT ${_NAME}_${comp}_FOUND)
  25. if(${_NAME}_FIND_REQUIRED_${comp})
  26. set(${_NAME}_FOUND FALSE)
  27. endif()
  28. endif()
  29. endforeach()
  30. endmacro()
  31. ####################################################################################
  32. include(CMakeFindDependencyMacro)
  33. if(NOT TARGET msgpackc AND NOT TARGET msgpackc-static)
  34. include("${CMAKE_CURRENT_LIST_DIR}/msgpack-targets.cmake")
  35. if(NOT ON)
  36. add_library(msgpackc ALIAS msgpackc-static)
  37. endif()
  38. endif()