CMakePresets.json (1884B)
1 { 2 "version": 3, 3 "cmakeMinimumRequired": { 4 "major": 3, 5 "minor": 17, 6 "patch": 0 7 }, 8 "configurePresets": [ 9 { 10 "name": "ninja", 11 "displayName": "Ninja", 12 "description": "Configure and generate Ninja project files for all configurations", 13 "binaryDir": "${sourceDir}/builds/${presetName}", 14 "generator": "Ninja Multi-Config", 15 "cacheVariables": { 16 "CMAKE_EXPORT_COMPILE_COMMANDS": { 17 "type": "boolean", 18 "value": true 19 }, 20 "CLAP_BUILD_TESTS": { 21 "type": "boolean", 22 "value": true 23 } 24 } 25 }, 26 { 27 "name": "msvc", 28 "displayName": "MSVC", 29 "description": "Configure and generate MSVC project files for all configurations", 30 "binaryDir": "${sourceDir}/builds/${presetName}", 31 "generator": "Visual Studio 17 2022", 32 "cacheVariables": { 33 "CMAKE_EXPORT_COMPILE_COMMANDS": { 34 "type": "boolean", 35 "value": true 36 }, 37 "CLAP_BUILD_TESTS": { 38 "type": "boolean", 39 "value": true 40 } 41 } 42 } 43 ], 44 "buildPresets": [ 45 { 46 "name": "ninja-release", 47 "configurePreset": "ninja", 48 "displayName": "Build ninja-release", 49 "description": "Build ninja Release configuration", 50 "configuration": "RelWithDebInfo", 51 "targets": ["clap-tests"] 52 }, 53 { 54 "name": "msvc-release", 55 "configurePreset": "msvc", 56 "displayName": "Build msvc-release", 57 "description": "Build msvc Release configuration", 58 "configuration": "RelWithDebInfo", 59 "targets": ["clap-tests"] 60 } 61 ], 62 "testPresets": [ 63 { 64 "name": "ninja-release", 65 "configurePreset": "ninja", 66 "configuration": "RelWithDebInfo" 67 }, 68 { 69 "name": "msvc-release", 70 "configurePreset": "msvc", 71 "configuration": "RelWithDebInfo" 72 } 73 ] 74 }