aboutsummaryrefslogblamecommitdiffstats
path: root/CMakePresets.json
blob: 529b602b0f91d9e516b392fce81f47870718ee26 (plain) (tree)
1
2
3
4
5
6
7
8
9
    


                         
                               
                           
                                 

                                                                   
                               

                                           



                                           
                              


             


                                       
                               
                                           
             

          


                                         


                                             


         
{
    "version": 3,
    "configurePresets": [
        {
            "name": "gnu-base",
            "hidden": true,
            "generator": "Ninja",
            "binaryDir": "${sourceDir}/out/build/${presetName}",
            "installDir": "${sourceDir}/out/install/${presetName}",
            "cacheVariables": {
                "CMAKE_C_COMPILER": "gcc",
                "CMAKE_CXX_COMPILER": "g++"
            },
            "condition": {
                "type": "equals",
                "lhs": "${hostSystemName}",
                "rhs": "Linux"
            }
        },
        {
            "name": "gnu-debug",
            "displayName": "GNU Debug",
            "inherits": "gnu-base",
            "cacheVariables": {
                "CMAKE_BUILD_TYPE": "Debug"
            }
        },
        {
            "name": "gnu-release",
            "displayName": "GNU Release",
            "inherits": "gnu-base",
            "cacheVariables": {
                "CMAKE_BUILD_TYPE": "Release"
            }
        }
    ]
}