~neon/kmousetool/master

« back to all changes in this revision

Viewing changes to CMakePresets.json

  • Committer: Laurent Montel
  • Date: 2021-05-19 11:16:39 UTC
  • Revision ID: git-v1:5d325965e0e573589c37f3f756b87b3bc1420fed
Add build support + clazy support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{
2
 
    "version": 1,
 
2
    "version": 2,
3
3
    "configurePresets": [
4
4
        {
5
5
            "name": "dev",
51
51
                "CMAKE_BUILD_TYPE": "RelWithDebInfo",
52
52
                "CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
53
53
            }
54
 
        }
 
54
        },
 
55
        {
 
56
            "name": "clazy",
 
57
            "displayName": "clazy",
 
58
            "generator": "Ninja",
 
59
            "binaryDir": "${sourceDir}/build-clazy",
 
60
            "cacheVariables": {
 
61
                "CMAKE_BUILD_TYPE": "Debug"
 
62
            },
 
63
            "environment": {
 
64
                "CXX": "clazy",
 
65
                "CCACHE_DISABLE": "ON"
 
66
            }
 
67
        }
 
68
    ],
 
69
    "buildPresets": [
 
70
        {
 
71
            "name": "dev",
 
72
            "configurePreset": "dev"
 
73
        },
 
74
        {
 
75
            "name": "clazy",
 
76
            "configurePreset": "clazy",
 
77
            "environment": {
 
78
                "CLAZY_CHECKS" : "level0,level1,detaching-member,ifndef-define-typo,isempty-vs-count,qrequiredresult-candidates,reserve-candidates,signal-with-return-value,unneeded-cast,function-args-by-ref,function-args-by-value,returning-void-expression,no-ctor-missing-parent-argument,isempty-vs-count,qhash-with-char-pointer-key,raw-environment-function,qproperty-type-mismatch,old-style-connect,qstring-allocations,container-inside-loop,heap-allocated-small-trivial-type,inefficient-qlist,qstring-varargs,level2,detaching-member,heap-allocated-small-trivial-type,isempty-vs-count,qstring-varargs,qvariant-template-instantiation,raw-environment-function,reserve-candidates,signal-with-return-value,thread-with-slots,no-ctor-missing-parent-argument,no-missing-typeinfo",
 
79
                "CCACHE_DISABLE" : "ON"
 
80
            }
 
81
        }
55
82
    ]
56
83
}