summaryrefslogtreecommitdiffstats
path: root/Utilities/KWStyle/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-31 18:07:53 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-31 18:07:53 (GMT)
commit27187d78be18c98ce6b77e44d49e2516d20105cd (patch)
tree0633da4d012b551449aa3a29eda7f24b1959754d /Utilities/KWStyle/CMakeLists.txt
parentb7527db958221d685625765741d090a789cef9ac (diff)
downloadCMake-27187d78be18c98ce6b77e44d49e2516d20105cd.zip
CMake-27187d78be18c98ce6b77e44d49e2516d20105cd.tar.gz
CMake-27187d78be18c98ce6b77e44d49e2516d20105cd.tar.bz2
STYLE: add makefile target MoreStyleChecks, which runs KWStyle with more
checks enabled and creates the html files. Alex
Diffstat (limited to 'Utilities/KWStyle/CMakeLists.txt')
-rw-r--r--Utilities/KWStyle/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Utilities/KWStyle/CMakeLists.txt b/Utilities/KWStyle/CMakeLists.txt
index b7aa2e8..ca8540a 100644
--- a/Utilities/KWStyle/CMakeLists.txt
+++ b/Utilities/KWStyle/CMakeLists.txt
@@ -26,6 +26,8 @@ IF(CMAKE_USE_KWSTYLE)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMake.kws.xml.in
${CMAKE_BINARY_DIR}/CMake.kws.xml)
+ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMakeMoreChecks.kws.xml.in
+ ${CMAKE_BINARY_DIR}/CMakeMoreChecks.kws.xml)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMakeFiles.txt.in
${CMAKE_BINARY_DIR}/CMakeKWSFiles.txt)
@@ -36,6 +38,13 @@ IF(CMAKE_USE_KWSTYLE)
ARGS -xml ${CMAKE_BINARY_DIR}/CMake.kws.xml -o ${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMakeOverwrite.txt -v ${KWSTYLE_ARGUMENTS} -D ${CMAKE_BINARY_DIR}/CMakeKWSFiles.txt
COMMENT "Coding Style Checker"
)
+
+ ADD_CUSTOM_TARGET(MoreStyleChecks
+ COMMAND ${KWSTYLE_EXECUTABLE}
+ -xml ${CMAKE_BINARY_DIR}/CMakeMoreChecks.kws.xml -html ${CMAKE_BINARY_DIR}/html -o ${CMAKE_SOURCE_DIR}/Utilities/KWStyle/CMakeOverwrite.txt -v ${KWSTYLE_ARGUMENTS} -D ${CMAKE_BINARY_DIR}/CMakeKWSFiles.txt
+ COMMENT "Coding Style Checker, more checks enabled"
+ )
+
ADD_CUSTOM_TARGET(StyleCheck DEPENDS ${CMAKE_BINARY_DIR}/KWStyleReport.txt)
ENDIF(CMAKE_USE_KWSTYLE)