permutation.cmake 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. set(recastLibraries DebugUtils;Detour;DetourCrowd;DetourTileCache;Recast)
  9. foreach(recastLibrary ${recastLibraries})
  10. add_library(RecastNavigation::${recastLibrary} STATIC IMPORTED GLOBAL)
  11. set_target_properties(RecastNavigation::${recastLibrary}
  12. PROPERTIES
  13. IMPORTED_LOCATION
  14. "${LY_ROOT_FOLDER}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}${recastLibrary}${CMAKE_STATIC_LIBRARY_SUFFIX}")
  15. target_compile_definitions(RecastNavigation::${recastLibrary}
  16. INTERFACE
  17. DT_POLYREF64)
  18. ly_target_include_system_directories(TARGET RecastNavigation::${recastLibrary}
  19. INTERFACE
  20. "${LY_ROOT_FOLDER}/include/recastnavigation")
  21. endforeach()
  22. # Generated by O3DE
  23. ly_add_target(
  24. NAME RecastNavigation.API IMPORTED HEADERONLY
  25. NAMESPACE Gem
  26. COMPILE_DEFINITIONS
  27. INTERFACE
  28. INCLUDE_DIRECTORIES
  29. INTERFACE
  30. Include
  31. BUILD_DEPENDENCIES
  32. INTERFACE
  33. AZ::AzCore
  34. RecastNavigation::Detour
  35. RecastNavigation::Recast
  36. RUNTIME_DEPENDENCIES
  37. TARGET_PROPERTIES
  38. )
  39. set(configs debug;profile;release)
  40. foreach(config ${configs})
  41. include("Platform/Windows/Default/RecastNavigation.API_${config}.cmake" OPTIONAL)
  42. endforeach()
  43. # Generated by O3DE
  44. ly_add_target(
  45. NAME RecastNavigation.Private.Object IMPORTED STATIC
  46. NAMESPACE Gem
  47. COMPILE_DEFINITIONS
  48. INTERFACE
  49. INCLUDE_DIRECTORIES
  50. INTERFACE
  51. BUILD_DEPENDENCIES
  52. INTERFACE
  53. AZ::AzCore
  54. AZ::AzFramework
  55. RecastNavigation::DebugUtils
  56. RecastNavigation::Detour
  57. RecastNavigation::Recast
  58. Gem::LmbrCentral.Static
  59. Gem::DebugDraw.Static
  60. RUNTIME_DEPENDENCIES
  61. TARGET_PROPERTIES
  62. )
  63. set(configs debug;profile;release)
  64. foreach(config ${configs})
  65. include("Platform/Windows/Default/RecastNavigation.Private.Object_${config}.cmake" OPTIONAL)
  66. endforeach()
  67. # Generated by O3DE
  68. ly_add_target(
  69. NAME RecastNavigation IMPORTED GEM_MODULE
  70. NAMESPACE Gem
  71. COMPILE_DEFINITIONS
  72. INTERFACE
  73. INCLUDE_DIRECTORIES
  74. INTERFACE
  75. Include
  76. BUILD_DEPENDENCIES
  77. INTERFACE
  78. Gem::RecastNavigation.API
  79. RUNTIME_DEPENDENCIES
  80. Gem::RecastNavigation.Private.Object
  81. TARGET_PROPERTIES
  82. )
  83. set(configs debug;profile;release)
  84. foreach(config ${configs})
  85. include("Platform/Windows/Default/RecastNavigation_${config}.cmake" OPTIONAL)
  86. endforeach()
  87. # Generated by O3DE
  88. ly_add_target(
  89. NAME RecastNavigation.Editor.API IMPORTED HEADERONLY
  90. NAMESPACE Gem
  91. COMPILE_DEFINITIONS
  92. INTERFACE
  93. INCLUDE_DIRECTORIES
  94. INTERFACE
  95. Include
  96. BUILD_DEPENDENCIES
  97. INTERFACE
  98. AZ::AzToolsFramework
  99. RUNTIME_DEPENDENCIES
  100. TARGET_PROPERTIES
  101. )
  102. set(configs debug;profile;release)
  103. foreach(config ${configs})
  104. include("Platform/Windows/Default/RecastNavigation.Editor.API_${config}.cmake" OPTIONAL)
  105. endforeach()
  106. # Generated by O3DE
  107. ly_add_target(
  108. NAME RecastNavigation.Editor.Private.Object IMPORTED STATIC
  109. NAMESPACE Gem
  110. COMPILE_DEFINITIONS
  111. INTERFACE
  112. INCLUDE_DIRECTORIES
  113. INTERFACE
  114. BUILD_DEPENDENCIES
  115. INTERFACE
  116. AZ::AzToolsFramework
  117. Gem::RecastNavigation.Private.Object
  118. Gem::LmbrCentral.Static
  119. Gem::DebugDraw.Static
  120. RUNTIME_DEPENDENCIES
  121. TARGET_PROPERTIES
  122. )
  123. set(configs debug;profile;release)
  124. foreach(config ${configs})
  125. include("Platform/Windows/Default/RecastNavigation.Editor.Private.Object_${config}.cmake" OPTIONAL)
  126. endforeach()
  127. # Generated by O3DE
  128. ly_add_target(
  129. NAME RecastNavigation.Editor IMPORTED GEM_MODULE
  130. NAMESPACE Gem
  131. COMPILE_DEFINITIONS
  132. INTERFACE
  133. INCLUDE_DIRECTORIES
  134. INTERFACE
  135. Include
  136. BUILD_DEPENDENCIES
  137. INTERFACE
  138. Gem::RecastNavigation.Editor.API
  139. RUNTIME_DEPENDENCIES
  140. Gem::RecastNavigation.Editor.Private.Object
  141. TARGET_PROPERTIES
  142. )
  143. set(configs debug;profile;release)
  144. foreach(config ${configs})
  145. include("Platform/Windows/Default/RecastNavigation.Editor_${config}.cmake" OPTIONAL)
  146. endforeach()
  147. if(NOT TARGET RecastNavigation.Clients)
  148. ly_create_alias( NAME RecastNavigation.Clients NAMESPACE Gem TARGETS Gem::RecastNavigation)
  149. endif()
  150. if(NOT TARGET RecastNavigation.Servers)
  151. ly_create_alias( NAME RecastNavigation.Servers NAMESPACE Gem TARGETS Gem::RecastNavigation)
  152. endif()
  153. if(NOT TARGET RecastNavigation.Clients.API)
  154. ly_create_alias( NAME RecastNavigation.Clients.API NAMESPACE Gem TARGETS Gem::RecastNavigation.API)
  155. endif()
  156. if(NOT TARGET RecastNavigation.Servers.API)
  157. ly_create_alias( NAME RecastNavigation.Servers.API NAMESPACE Gem TARGETS Gem::RecastNavigation.API)
  158. endif()
  159. if(NOT TARGET RecastNavigation.Tools)
  160. ly_create_alias( NAME RecastNavigation.Tools NAMESPACE Gem TARGETS Gem::RecastNavigation.Editor)
  161. endif()
  162. if(NOT TARGET RecastNavigation.Builders)
  163. ly_create_alias( NAME RecastNavigation.Builders NAMESPACE Gem TARGETS Gem::RecastNavigation.Editor)
  164. endif()
  165. if(NOT TARGET RecastNavigation.Tools.API)
  166. ly_create_alias( NAME RecastNavigation.Tools.API NAMESPACE Gem TARGETS Gem::RecastNavigation.Editor.API)
  167. endif()
  168. if(NOT TARGET RecastNavigation.Builders.API)
  169. ly_create_alias( NAME RecastNavigation.Builders.API NAMESPACE Gem TARGETS Gem::RecastNavigation.Editor.API)
  170. endif()