CMakePresets.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. "R3D_RAYLIB_VENDORED": "ON",
  31. "R3D_ASSIMP_VENDORED": "ON"
  32. }
  33. },
  34. {
  35. "name": "x64-release",
  36. "displayName": "x64 Release",
  37. "inherits": "x64-debug",
  38. "cacheVariables": {
  39. "CMAKE_BUILD_TYPE": "Release",
  40. "R3D_RAYLIB_VENDORED": "ON",
  41. "R3D_ASSIMP_VENDORED": "ON"
  42. }
  43. },
  44. {
  45. "name": "x86-debug",
  46. "displayName": "x86 Debug",
  47. "inherits": "windows-base",
  48. "architecture": {
  49. "value": "x86",
  50. "strategy": "external"
  51. },
  52. "cacheVariables": {
  53. "CMAKE_BUILD_TYPE": "Debug",
  54. "R3D_RAYLIB_VENDORED": "ON",
  55. "R3D_ASSIMP_VENDORED": "ON"
  56. }
  57. },
  58. {
  59. "name": "x86-release",
  60. "displayName": "x86 Release",
  61. "inherits": "x86-debug",
  62. "cacheVariables": {
  63. "CMAKE_BUILD_TYPE": "Release",
  64. "R3D_RAYLIB_VENDORED": "ON",
  65. "R3D_ASSIMP_VENDORED": "ON"
  66. }
  67. },
  68. {
  69. "name": "linux-debug",
  70. "displayName": "Linux Debug",
  71. "generator": "Ninja",
  72. "binaryDir": "${sourceDir}/out/build/${presetName}",
  73. "installDir": "${sourceDir}/out/install/${presetName}",
  74. "cacheVariables": {
  75. "CMAKE_BUILD_TYPE": "Debug",
  76. "R3D_RAYLIB_VENDORED": "ON",
  77. "R3D_ASSIMP_VENDORED": "ON"
  78. },
  79. "condition": {
  80. "type": "equals",
  81. "lhs": "${hostSystemName}",
  82. "rhs": "Linux"
  83. },
  84. "vendor": {
  85. "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
  86. "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}"
  87. }
  88. }
  89. },
  90. {
  91. "name": "macos-debug",
  92. "displayName": "macOS Debug",
  93. "generator": "Ninja",
  94. "binaryDir": "${sourceDir}/out/build/${presetName}",
  95. "installDir": "${sourceDir}/out/install/${presetName}",
  96. "cacheVariables": {
  97. "CMAKE_BUILD_TYPE": "Debug",
  98. "R3D_RAYLIB_VENDORED": "ON",
  99. "R3D_ASSIMP_VENDORED": "ON"
  100. },
  101. "condition": {
  102. "type": "equals",
  103. "lhs": "${hostSystemName}",
  104. "rhs": "Darwin"
  105. },
  106. "vendor": {
  107. "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
  108. "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}"
  109. }
  110. }
  111. }
  112. ]
  113. }