You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,19 +59,17 @@ cmake -S . -B build
59
59
cmake --build build
60
60
```
61
61
62
-
If you want to compile the GUI you can use the flag.
63
-
-DBUILD_GUI=ON
62
+
The default build type is `Debug` if you want a `Release` build you can use the flag (on the first `cmake` command above): `-DCMAKE_BUILD_TYPE=Release`
64
63
65
-
For rules support (requires pcre) use the flag.
66
-
-DHAVE_RULES=ON
64
+
For release builds it is recommended that you use: `-DUSE_MATCHCOMPILER=ON`
67
65
68
-
For release builds it is recommended that you use:
69
-
-DUSE_MATCHCOMPILER=ON
66
+
If you want to compile the GUI you can use the flag: `-DBUILD_GUI=ON`
70
67
71
-
For building the tests use the flag.
72
-
-DBUILD_TESTS=ON
68
+
For rules support (requires pcre) use the flag: `-DHAVE_RULES=ON`
73
69
74
-
Using cmake you can generate project files for Visual Studio,XCode,etc.
70
+
For building the tests use the flag: `-DBUILD_TESTS=ON`
71
+
72
+
By using cmake you can generate project files for Visual Studio, XCode, etc.
75
73
76
74
#### Building a specific configuration
77
75
@@ -89,6 +87,14 @@ cmake -S . -B build
89
87
cmake --build build --config RelWithDebInfo
90
88
```
91
89
90
+
#### Installation
91
+
92
+
After you compiled your binary you can run the followning cmake command to install Cppcheck:
93
+
94
+
```shell
95
+
sudo cmake --install build
96
+
```
97
+
92
98
### Visual Studio
93
99
94
100
Use the cppcheck.sln file. The file is configured for Visual Studio 2019, but the platform toolset can be changed easily to older or newer versions. The solution contains platform targets for both x86 and x64.
0 commit comments