-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
60 lines (53 loc) · 1.09 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
set( LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
Option
Support
)
#set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
#set( SOURCES
# steengaardPA.cpp
# steengaardPA.h
# macros.h
#)
add_clang_executable(racer
callGraphAnalysis.h
eventHandler.h
globalVarHandler.h
globalVarHandler.cpp
macros.h
racer.cpp
raceAnalysis.h
raceAnalysis.cpp
steengaardPA.h
steengaardPA.cpp
steengaardPAVisitor.h
steengaardPAVisitor.cpp
flowSensitivePA.h
flowSensitivePA.cpp
symtab.h
symtab.cpp
symTabBuilder.h
symTabBuilder.cpp
CGFrontendAction.h
libExt/CompilerInstanceCtu.h
libExt/CallGraphCtu.h
libExt/CallGraphCtu.cpp
)
#add_clang_executable(cgwpa
# wpCallGraphBuilder.cpp
#)
target_link_libraries(racer
LINK_PRIVATE clangAST
clangBasic
clangDriver
clangFrontend
clangRewriteFrontend
clangStaticAnalyzerFrontend
clangTooling
)
#add_custom_target(ast)
#foreach(Sourcefile ${SourceFiles})
#add_custom_command(TARGET ast PRE_BUILD
# COMMAND clang -emit-ast ${SourceFile} -o /repo/emasabu/spa-test/${SourceFiles}.ast)
install(TARGETS racer
RUNTIME DESTINATION bin)