CMakePresets.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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-base",
  62. "hidden": true,
  63. "displayName": "Linux Base",
  64. "generator": "Ninja",
  65. "binaryDir": "${sourceDir}/out/build/${presetName}",
  66. "installDir": "${sourceDir}/out/install/${presetName}",
  67. "condition": {
  68. "type": "equals",
  69. "lhs": "${hostSystemName}",
  70. "rhs": "Linux"
  71. },
  72. "vendor": {
  73. "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
  74. "sourceDir": "$env{HOME}/vscode_project/$ms{projectDirName}"
  75. }
  76. }
  77. },
  78. {
  79. "name": "linux-debug",
  80. "displayName": "Linux Debug",
  81. "inherits": "linux-base",
  82. "cacheVariables": {
  83. "CMAKE_BUILD_TYPE": "Debug"
  84. }
  85. },
  86. {
  87. "name": "linux-release",
  88. "displayName": "Linux Release",
  89. "inherits": "linux-base",
  90. "cacheVariables": {
  91. "CMAKE_BUILD_TYPE": "Release"
  92. }
  93. },
  94. {
  95. "name": "macos-debug",
  96. "displayName": "macOS Debug",
  97. "generator": "Ninja",
  98. "binaryDir": "${sourceDir}/out/build/${presetName}",
  99. "installDir": "${sourceDir}/out/install/${presetName}",
  100. "cacheVariables": {
  101. "CMAKE_BUILD_TYPE": "Debug"
  102. },
  103. "condition": {
  104. "type": "equals",
  105. "lhs": "${hostSystemName}",
  106. "rhs": "Darwin"
  107. },
  108. "vendor": {
  109. "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
  110. "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}"
  111. }
  112. }
  113. }
  114. ]
  115. }