CMakePresets.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. "name": "linux-debug",
  62. "displayName": "Linux Debug",
  63. "generator": "Ninja",
  64. "binaryDir": "${sourceDir}/out/build/${presetName}",
  65. "installDir": "${sourceDir}/out/install/${presetName}",
  66. "cacheVariables": {
  67. "CMAKE_BUILD_TYPE": "Debug"
  68. },
  69. "condition": {
  70. "type": "equals",
  71. "lhs": "${hostSystemName}",
  72. "rhs": "Linux"
  73. },
  74. "vendor": {
  75. "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
  76. "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}"
  77. }
  78. }
  79. },
  80. {
  81. "name": "macos-debug",
  82. "displayName": "macOS Debug",
  83. "generator": "Ninja",
  84. "binaryDir": "${sourceDir}/out/build/${presetName}",
  85. "installDir": "${sourceDir}/out/install/${presetName}",
  86. "cacheVariables": {
  87. "CMAKE_BUILD_TYPE": "Debug"
  88. },
  89. "condition": {
  90. "type": "equals",
  91. "lhs": "${hostSystemName}",
  92. "rhs": "Darwin"
  93. },
  94. "vendor": {
  95. "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
  96. "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}"
  97. }
  98. }
  99. }
  100. ]
  101. }