diff options
| author | 彭宣正 <[email protected]> | 2022-10-08 10:28:27 +0000 |
|---|---|---|
| committer | 刘学利 <[email protected]> | 2022-10-08 10:28:27 +0000 |
| commit | d55819b624a06fabe8729524b8e8b6aca3e0e92f (patch) | |
| tree | fea8e0b48efb0716a0e49ef1990244bce3f834a3 /CMakeLists.txt | |
| parent | d67f09990712f90e736cbc03f2674a151338a502 (diff) | |
✨ feat(TSG-12086): 增加ja3s 生成方式v2.0.12
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e81976c..bfb930a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,23 @@ elseif(ASAN_OPTION MATCHES "THREAD") endif() # end of for ASAN +find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck) +if (CMAKE_CXX_CPPCHECK) + list( + APPEND CMAKE_CXX_CPPCHECK + "--enable=all" + "--error-exitcode=1" + "--suppress=unusedFunction" + "--suppress=missingInclude" + "--suppress=uselessAssignmentPtrArg" + "--suppress=unmatchedSuppression" + "--suppress=unreadVariable" + "--suppress=unreachableCode" + ) + message("cppcheck start...") +else() + message(FATAL_ERROR "Could not find the program cppcheck.") +endif() include_directories(/opt/MESA/include/MESA/) include_directories(./src/inc/) |
