Advertisement
Guest User

Untitled

a guest
Jan 10th, 2024
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 4.90 KB | None | 0 0
  1. # Generated by CMake
  2.  
  3. if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
  4.    message(FATAL_ERROR "CMake >= 2.8.0 required")
  5. endif()
  6. if(CMAKE_VERSION VERSION_LESS "2.8.3")
  7.    message(FATAL_ERROR "CMake >= 2.8.3 required")
  8. endif()
  9. cmake_policy(PUSH)
  10. cmake_policy(VERSION 2.8.3...3.26)
  11. #----------------------------------------------------------------
  12. # Generated CMake target import file.
  13. #----------------------------------------------------------------
  14.  
  15. # Commands may need to know the format version.
  16. set(CMAKE_IMPORT_FILE_VERSION 1)
  17.  
  18. # Protect against multiple inclusion, which would fail when already imported targets are added once more.
  19. set(_cmake_targets_defined "")
  20. set(_cmake_targets_not_defined "")
  21. set(_cmake_expected_targets "")
  22. foreach(_cmake_expected_target IN ITEMS common::utility)
  23.   list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
  24.   if(TARGET "${_cmake_expected_target}")
  25.     list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
  26.   else()
  27.     list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
  28.   endif()
  29. endforeach()
  30. unset(_cmake_expected_target)
  31. if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
  32.   unset(_cmake_targets_defined)
  33.   unset(_cmake_targets_not_defined)
  34.   unset(_cmake_expected_targets)
  35.   unset(CMAKE_IMPORT_FILE_VERSION)
  36.   cmake_policy(POP)
  37.   return()
  38. endif()
  39. if(NOT _cmake_targets_defined STREQUAL "")
  40.   string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
  41.   string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
  42.   message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
  43. endif()
  44. unset(_cmake_targets_defined)
  45. unset(_cmake_targets_not_defined)
  46. unset(_cmake_expected_targets)
  47.  
  48.  
  49. # Compute the installation prefix relative to this file.
  50. get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  51. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  52. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  53. get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
  54. if(_IMPORT_PREFIX STREQUAL "/")
  55.   set(_IMPORT_PREFIX "")
  56. endif()
  57.  
  58. # Create imported target common::utility
  59. add_library(common::utility STATIC IMPORTED)
  60.  
  61. set_target_properties(common::utility PROPERTIES
  62.   IMPORTED_CXX_MODULES_COMPILE_DEFINITIONS "ROBOCIN_PROJECT_NAME=\"common\";ROBOCIN_PROJECT_PATH=\"/tmp/common/cpp\""
  63.   IMPORTED_CXX_MODULES_COMPILE_FEATURES "cxx_std_23"
  64.   IMPORTED_CXX_MODULES_INCLUDE_DIRECTORIES "/tmp/common/cpp;/tmp/common/cpp/build"
  65.   IMPORTED_CXX_MODULES_LINK_LIBRARIES "\$<COMPILE_ONLY:protobuf::libprotobuf>"
  66.   INTERFACE_COMPILE_FEATURES "cxx_std_23"
  67.   INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
  68.   INTERFACE_LINK_LIBRARIES "protobuf::libprotobuf"
  69. )
  70.  
  71. if(NOT CMAKE_VERSION VERSION_LESS "3.23.0")
  72.   target_sources(common::utility
  73.     INTERFACE
  74.       FILE_SET "CXX_MODULES"
  75.       TYPE "CXX_MODULES"
  76.       BASE_DIRS "${_IMPORT_PREFIX}/modules"
  77.       FILES "${_IMPORT_PREFIX}/modules/utility.ixx" "${_IMPORT_PREFIX}/modules/concepts.ixx"
  78.   )
  79. else()
  80.   set_property(TARGET common::utility
  81.     APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
  82.       "${_IMPORT_PREFIX}/modules"
  83.   )
  84. endif()
  85.  
  86. if(CMAKE_VERSION VERSION_LESS 2.8.12)
  87.   message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
  88. endif()
  89.  
  90. # Load information for each installed configuration.
  91. file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/commonConfig-*.cmake")
  92. foreach(_cmake_config_file IN LISTS _cmake_config_files)
  93.   include("${_cmake_config_file}")
  94. endforeach()
  95. unset(_cmake_config_file)
  96. unset(_cmake_config_files)
  97.  
  98. # Cleanup temporary variables.
  99. set(_IMPORT_PREFIX)
  100.  
  101. # Loop over all imported files and verify that they actually exist
  102. foreach(_cmake_target IN LISTS _cmake_import_check_targets)
  103.   foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
  104.     if(NOT EXISTS "${_cmake_file}")
  105.       message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
  106.   \"${_cmake_file}\"
  107. but this file does not exist.  Possible reasons include:
  108. * The file was deleted, renamed, or moved to another location.
  109. * An install or uninstall procedure did not complete successfully.
  110. * The installation package was faulty and contained
  111.   \"${CMAKE_CURRENT_LIST_FILE}\"
  112. but not all the files it references.
  113. ")
  114.     endif()
  115.   endforeach()
  116.   unset(_cmake_file)
  117.   unset("_cmake_import_check_files_for_${_cmake_target}")
  118. endforeach()
  119. unset(_cmake_target)
  120. unset(_cmake_import_check_targets)
  121.  
  122. # This file does not depend on other imported targets which have
  123. # been exported from the same project but in a separate export set.
  124.  
  125. # Commands beyond this point should not need to know the version.
  126. set(CMAKE_IMPORT_FILE_VERSION)
  127. cmake_policy(POP)
  128.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement