forked from alisw/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
23 lines (21 loc) · 906 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)