CMakePresets.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. {
  2. "version": 3,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 22,
  6. "patch": 0
  7. },
  8. "configurePresets": [
  9. {
  10. "name": "template",
  11. "hidden": true,
  12. "cacheVariables": {
  13. "ENABLE_FRONTEND_API": false,
  14. "ENABLE_QT": false
  15. }
  16. },
  17. {
  18. "name": "macos",
  19. "displayName": "macOS Universal",
  20. "description": "Build for macOS 11.0+ (Universal binary)",
  21. "inherits": ["template"],
  22. "binaryDir": "${sourceDir}/build_macos",
  23. "condition": {
  24. "type": "equals",
  25. "lhs": "${hostSystemName}",
  26. "rhs": "Darwin"
  27. },
  28. "generator": "Xcode",
  29. "warnings": {"dev": true, "deprecated": true},
  30. "cacheVariables": {
  31. "CMAKE_OSX_DEPLOYMENT_TARGET": "11.0",
  32. "CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
  33. "CODESIGN_TEAM": "$penv{CODESIGN_TEAM}"
  34. }
  35. },
  36. {
  37. "name": "macos-ci",
  38. "inherits": ["macos"],
  39. "displayName": "macOS Universal CI build",
  40. "description": "Build for macOS 11.0+ (Universal binary) for CI",
  41. "generator": "Xcode",
  42. "cacheVariables": {
  43. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  44. }
  45. },
  46. {
  47. "name": "windows-x64",
  48. "displayName": "Windows x64",
  49. "description": "Build for Windows x64",
  50. "inherits": ["template"],
  51. "binaryDir": "${sourceDir}/build_x64",
  52. "condition": {
  53. "type": "equals",
  54. "lhs": "${hostSystemName}",
  55. "rhs": "Windows"
  56. },
  57. "generator": "Visual Studio 17 2022",
  58. "architecture": "x64",
  59. "warnings": {"dev": true, "deprecated": true},
  60. "cacheVariables": {
  61. "CMAKE_SYSTEM_VERSION": "10.0.18363.657"
  62. }
  63. },
  64. {
  65. "name": "windows-ci-x64",
  66. "inherits": ["windows-x64"],
  67. "displayName": "Windows x64 CI build",
  68. "description": "Build for Windows x64 on CI",
  69. "cacheVariables": {
  70. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  71. }
  72. },
  73. {
  74. "name": "linux-x86_64",
  75. "displayName": "Linux x86_64",
  76. "description": "Build for Linux x86_64",
  77. "inherits": ["template"],
  78. "binaryDir": "${sourceDir}/build_x86_64",
  79. "condition": {
  80. "type": "equals",
  81. "lhs": "${hostSystemName}",
  82. "rhs": "Linux"
  83. },
  84. "generator": "Ninja",
  85. "warnings": {"dev": true, "deprecated": true},
  86. "cacheVariables": {
  87. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  88. }
  89. },
  90. {
  91. "name": "linux-ci-x86_64",
  92. "inherits": ["linux-x86_64"],
  93. "displayName": "Linux x86_64 CI build",
  94. "description": "Build for Linux x86_64 on CI",
  95. "cacheVariables": {
  96. "CMAKE_BUILD_TYPE": "RelWithDebInfo",
  97. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  98. }
  99. },
  100. {
  101. "name": "linux-aarch64",
  102. "displayName": "Linux aarch64",
  103. "description": "Build for Linux aarch64",
  104. "inherits": ["template"],
  105. "binaryDir": "${sourceDir}/build_aarch64",
  106. "condition": {
  107. "type": "equals",
  108. "lhs": "${hostSystemName}",
  109. "rhs": "Linux"
  110. },
  111. "generator": "Ninja",
  112. "warnings": {"dev": true, "deprecated": true},
  113. "cacheVariables": {
  114. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  115. }
  116. },
  117. {
  118. "name": "linux-ci-aarch64",
  119. "inherits": ["linux-aarch64"],
  120. "displayName": "Linux aarch64 CI build",
  121. "description": "Build for Linux aarch64 on CI",
  122. "cacheVariables": {
  123. "CMAKE_BUILD_TYPE": "RelWithDebInfo",
  124. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  125. }
  126. }
  127. ],
  128. "buildPresets": [
  129. {
  130. "name": "macos",
  131. "configurePreset": "macos",
  132. "displayName": "macOS Universal",
  133. "description": "macOS build for Universal architectures",
  134. "configuration": "Release"
  135. },
  136. {
  137. "name": "macos-ci",
  138. "configurePreset": "macos-ci",
  139. "displayName": "macOS Universal CI",
  140. "description": "macOS CI build for Universal architectures",
  141. "configuration": "RelWithDebInfo"
  142. },
  143. {
  144. "name": "windows-x64",
  145. "configurePreset": "windows-x64",
  146. "displayName": "Windows x64",
  147. "description": "Windows build for x64",
  148. "configuration": "RelWithDebInfo"
  149. },
  150. {
  151. "name": "windows-ci-x64",
  152. "configurePreset": "windows-ci-x64",
  153. "displayName": "Windows x64 CI",
  154. "description": "Windows CI build for x64 (RelWithDebInfo configuration)",
  155. "configuration": "RelWithDebInfo"
  156. },
  157. {
  158. "name": "linux-x86_64",
  159. "configurePreset": "linux-x86_64",
  160. "displayName": "Linux x86_64",
  161. "description": "Linux build for x86_64",
  162. "configuration": "RelWithDebInfo"
  163. },
  164. {
  165. "name": "linux-ci-x86_64",
  166. "configurePreset": "linux-ci-x86_64",
  167. "displayName": "Linux x86_64 CI",
  168. "description": "Linux CI build for x86_64",
  169. "configuration": "RelWithDebInfo"
  170. },
  171. {
  172. "name": "linux-aarch64",
  173. "configurePreset": "linux-aarch64",
  174. "displayName": "Linux aarch64",
  175. "description": "Linux build for aarch64",
  176. "configuration": "RelWithDebInfo"
  177. },
  178. {
  179. "name": "linux-ci-aarch64",
  180. "configurePreset": "linux-ci-aarch64",
  181. "displayName": "Linux aarch64 CI",
  182. "description": "Linux CI build for aarch64",
  183. "configuration": "RelWithDebInfo"
  184. }
  185. ]
  186. }