Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/FindCppcheck.cmake
- This file was added.
1 | # Find the cppcheck executable | ||||
---|---|---|---|---|---|
2 | # | ||||
3 | # Defines the following variables | ||||
4 | # Cppcheck_EXECUTABLE - path of the Cppcheck executable | ||||
5 | | ||||
6 | #============================================================================= | ||||
7 | # Copyright 2017 Friedrich W. H. Kossebau <kossebau@kde.org> | ||||
8 | # | ||||
9 | # Distributed under the OSI-approved BSD License (the "License"); | ||||
10 | # see accompanying file Copyright.txt for details. | ||||
11 | # | ||||
12 | # This software is distributed WITHOUT ANY WARRANTY; without even the | ||||
13 | # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||||
14 | # See the License for more information. | ||||
15 | #============================================================================= | ||||
16 | | ||||
17 | find_program(Cppcheck_EXECUTABLE NAMES cppcheck) | ||||
18 | | ||||
19 | include(FindPackageHandleStandardArgs) | ||||
20 | find_package_handle_standard_args(Cppcheck DEFAULT_MSG Cppcheck_EXECUTABLE) | ||||
21 | | ||||
22 | mark_as_advanced(Cppcheck_EXECUTABLE) |