Double check if SM is running added. Some redundant output removed from SM
[u/mrichter/AliRoot.git] / test / CMakeLists.txt
index e69de29..46bc053 100644 (file)
@@ -0,0 +1,23 @@
+Find_Program(RULE_CHECKER_SRCML src2srcml $ENV{PATH})
+Find_Program(RULE_CHECKER_JAVA java $ENV{PATH})
+Set(RULE_CHECKER_FOUND NO)
+If(RULE_CHECKER_SRCML AND RULE_CHECKER_JAVA)
+  Find_File(RULE_CHECKER_JAR NAMES NewRuleChecker.jar PATHS $ENV{ALICE}/local/ALICENewRuleChecker/NewRuleChecker)
+  Find_File(RULE_CHECKER_RULES AliceCodingConventions.xml $ENV{ALICE}/local/ALICENewRuleChecker/NewRuleChecker/config)
+  If(RULE_CHECKER_JAR AND RULE_CHECKER_RULES)
+    Set(RULE_CHECKER_FOUND YES)
+  EndIf(RULE_CHECKER_JAR AND RULE_CHECKER_RULES)
+EndIf(RULE_CHECKER_SRCML AND RULE_CHECKER_JAVA)
+
+add_test("Warnings" cmake -P Warnings.cmake)
+If(RULE_CHECKER_FOUND)
+add_test("Violations" cmake -P Violation.cmake)
+EndIf(RULE_CHECKER_FOUND)
+add_subdirectory(gun)
+add_subdirectory(ppbench)
+add_subdirectory(genkine)
+add_subdirectory(merge)
+add_subdirectory(pploadlibs)
+add_subdirectory(PbPbbench)
+add_subdirectory(pileup)
+