summaryrefslogtreecommitdiff
path: root/cmake/FindCPPCHECK.cmake
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-09-28 08:11:41 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-09-28 08:11:41 +0000
commitd518970039a19a2a9b6d2bdd592cc88a43897bbb (patch)
tree57bac2cf7e63e9352228231062763baac627563c /cmake/FindCPPCHECK.cmake
parent8363a6ab1e031bb4b2e40a92e56efd40fdab1aa1 (diff)
[trunk] Start FolderReorgProposal task
Update issue 177
Diffstat (limited to 'cmake/FindCPPCHECK.cmake')
-rw-r--r--cmake/FindCPPCHECK.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmake/FindCPPCHECK.cmake b/cmake/FindCPPCHECK.cmake
new file mode 100644
index 00000000..6e11bf73
--- /dev/null
+++ b/cmake/FindCPPCHECK.cmake
@@ -0,0 +1,16 @@
+# cppcheck
+#
+# Copyright (c) 2011 Mathieu Malaterre <mathieu.malaterre@gmail.com>
+#
+# Redistribution and use is allowed according to the terms of the New
+# BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+#
+
+find_program(CPPCHECK_EXECUTABLE
+ cppcheck
+ )
+
+mark_as_advanced(
+ CPPCHECK_EXECUTABLE
+ )