CMakePresets.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {
  2. "version": 8,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 28,
  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. "CMAKE_OSX_ARCHITECTURES": "arm64;x86_64",
  33. "CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
  34. "CODESIGN_TEAM": "$penv{CODESIGN_TEAM}"
  35. }
  36. },
  37. {
  38. "name": "macos-ci",
  39. "inherits": ["macos"],
  40. "displayName": "macOS Universal CI build",
  41. "description": "Build for macOS 11.0+ (Universal binary) for CI",
  42. "generator": "Xcode",
  43. "cacheVariables": {
  44. "CMAKE_COMPILE_WARNING_AS_ERROR": true,
  45. "ENABLE_CCACHE": true
  46. }
  47. },
  48. {
  49. "name": "windows-x64",
  50. "displayName": "Windows x64",
  51. "description": "Build for Windows x64",
  52. "inherits": ["template"],
  53. "binaryDir": "${sourceDir}/build_x64",
  54. "condition": {
  55. "type": "equals",
  56. "lhs": "${hostSystemName}",
  57. "rhs": "Windows"
  58. },
  59. "generator": "Visual Studio 17 2022",
  60. "architecture": "x64,version=10.0.22621",
  61. "warnings": {"dev": true, "deprecated": true}
  62. },
  63. {
  64. "name": "windows-ci-x64",
  65. "inherits": ["windows-x64"],
  66. "displayName": "Windows x64 CI build",
  67. "description": "Build for Windows x64 on CI",
  68. "cacheVariables": {
  69. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  70. }
  71. },
  72. {
  73. "name": "ubuntu-x86_64",
  74. "displayName": "Ubuntu x86_64",
  75. "description": "Build for Ubuntu x86_64",
  76. "inherits": ["template"],
  77. "binaryDir": "${sourceDir}/build_x86_64",
  78. "condition": {
  79. "type": "equals",
  80. "lhs": "${hostSystemName}",
  81. "rhs": "Linux"
  82. },
  83. "generator": "Ninja",
  84. "warnings": {"dev": true, "deprecated": true},
  85. "cacheVariables": {
  86. "CMAKE_BUILD_TYPE": "RelWithDebInfo",
  87. "CMAKE_INSTALL_LIBDIR": "lib/CMAKE_SYSTEM_PROCESSOR-linux-gnu"
  88. }
  89. },
  90. {
  91. "name": "ubuntu-ci-x86_64",
  92. "inherits": ["ubuntu-x86_64"],
  93. "displayName": "Ubuntu x86_64 CI build",
  94. "description": "Build for Ubuntu x86_64 on CI",
  95. "cacheVariables": {
  96. "CMAKE_BUILD_TYPE": "RelWithDebInfo",
  97. "CMAKE_COMPILE_WARNING_AS_ERROR": true,
  98. "ENABLE_CCACHE": true
  99. }
  100. }
  101. ],
  102. "buildPresets": [
  103. {
  104. "name": "macos",
  105. "configurePreset": "macos",
  106. "displayName": "macOS Universal",
  107. "description": "macOS build for Universal architectures",
  108. "configuration": "RelWithDebInfo"
  109. },
  110. {
  111. "name": "macos-ci",
  112. "configurePreset": "macos-ci",
  113. "displayName": "macOS Universal CI",
  114. "description": "macOS CI build for Universal architectures",
  115. "configuration": "RelWithDebInfo"
  116. },
  117. {
  118. "name": "windows-x64",
  119. "configurePreset": "windows-x64",
  120. "displayName": "Windows x64",
  121. "description": "Windows build for x64",
  122. "configuration": "RelWithDebInfo"
  123. },
  124. {
  125. "name": "windows-ci-x64",
  126. "configurePreset": "windows-ci-x64",
  127. "displayName": "Windows x64 CI",
  128. "description": "Windows CI build for x64 (RelWithDebInfo configuration)",
  129. "configuration": "RelWithDebInfo"
  130. },
  131. {
  132. "name": "ubuntu-x86_64",
  133. "configurePreset": "ubuntu-x86_64",
  134. "displayName": "Ubuntu x86_64",
  135. "description": "Ubuntu build for x86_64",
  136. "configuration": "RelWithDebInfo"
  137. },
  138. {
  139. "name": "ubuntu-ci-x86_64",
  140. "configurePreset": "ubuntu-ci-x86_64",
  141. "displayName": "Ubuntu x86_64 CI",
  142. "description": "Ubuntu CI build for x86_64",
  143. "configuration": "RelWithDebInfo"
  144. }
  145. ]
  146. }