CMakePresets.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "version": 3,
  3. "configurePresets": [
  4. {
  5. "name": "windows-base",
  6. "hidden": true,
  7. "generator": "Ninja",
  8. "binaryDir": "${sourceDir}/out/build/${presetName}",
  9. "installDir": "${sourceDir}/out/install/${presetName}",
  10. "cacheVariables": {
  11. "CMAKE_C_COMPILER": "cl.exe",
  12. "CMAKE_CXX_COMPILER": "cl.exe"
  13. },
  14. "condition": {
  15. "type": "equals",
  16. "lhs": "${hostSystemName}",
  17. "rhs": "Windows"
  18. }
  19. },
  20. {
  21. "name": "x64-debug",
  22. "displayName": "x64 Debug",
  23. "inherits": "windows-base",
  24. "architecture": {
  25. "value": "x64",
  26. "strategy": "external"
  27. },
  28. "cacheVariables": {
  29. "CMAKE_BUILD_TYPE": "Debug"
  30. }
  31. },
  32. {
  33. "name": "x64-release",
  34. "displayName": "x64 Release",
  35. "inherits": "x64-debug",
  36. "cacheVariables": {
  37. "CMAKE_BUILD_TYPE": "Release"
  38. }
  39. },
  40. {
  41. "name": "x86-debug",
  42. "displayName": "x86 Debug",
  43. "inherits": "windows-base",
  44. "architecture": {
  45. "value": "x86",
  46. "strategy": "external"
  47. },
  48. "cacheVariables": {
  49. "CMAKE_BUILD_TYPE": "Debug"
  50. }
  51. },
  52. {
  53. "name": "x86-release",
  54. "displayName": "x86 Release",
  55. "inherits": "x86-debug",
  56. "cacheVariables": {
  57. "CMAKE_BUILD_TYPE": "Release"
  58. }
  59. }
  60. ]
  61. }