More CMake WIP
[dyninst.git] / parseAPI / CMakeLists.txt
1 # CMake configuration for parseAPI directory
2
3 include_directories (
4     ${PROJECT_SOURCE_DIR}/parseAPI/src
5   )
6
7
8 set (SRC_LIST
9         src/ParserDetails.C 
10         src/Parser.C 
11         src/CFGFactory.C 
12         src/Function.C 
13         src/Block.C 
14         src/CodeObject.C 
15         src/debug_parse.C 
16         src/CodeSource.C 
17         src/ParseData.C
18         src/InstructionAdapter.C
19         src/Parser-speculative.C
20         src/ParseCallback.C 
21         src/IA_x86Details.C 
22         src/IA_powerDetails.C 
23         src/IA_platformDetailsFactory.C 
24         src/CFGModifier.C
25         src/SymLiteCodeSource.C
26         src/StackTamperVisitor.C
27         ../dataflowAPI/src/ABI.C 
28         ../dataflowAPI/src/Absloc.C 
29         ../dataflowAPI/src/AbslocInterface.C 
30         ../dataflowAPI/src/convertOpcodes.C 
31         ../dataflowAPI/src/debug_dataflow.C 
32         ../dataflowAPI/src/ExpressionConversionVisitor.C 
33         ../dataflowAPI/src/InstructionCache.C 
34         ../dataflowAPI/src/liveness.C 
35         ../dataflowAPI/src/RegisterMap.C 
36         ../dataflowAPI/src/RoseImpl.C 
37         ../dataflowAPI/src/RoseInsnFactory.C 
38         ../dataflowAPI/src/slicing.C 
39         ../dataflowAPI/src/stackanalysis.C 
40         ../dataflowAPI/src/SymbolicExpansion.C 
41         ../dataflowAPI/src/SymEval.C 
42         ../dataflowAPI/src/SymEvalPolicy.C 
43         ../dataflowAPI/src/templates.C 
44         ../dataflowAPI/src/Visitors.C 
45     )
46
47 if (ENABLE_PARSE_API_GRAPHS)
48 set (SRC_LIST ${SRC_LIST}
49      src/GraphAdapter.C
50     )
51 endif()
52
53 if (LIGHTWEIGHT_SYMTAB)
54 set (SRC_LIST ${SRC_LIST}
55     src/SymtabCodeSource.C
56     )
57 endif()
58
59
60 add_library (parseAPI ${SRC_LIST})
61 target_link_libraries(parseAPI common)
62 target_link_libraries(parseAPI instructionAPI)
63
64 if (UNIX)
65 target_link_libraries(parseAPI ${LIBELF_LIBRARIES})
66 endif()
67
68 if (LIGHTWEIGHT_SYMTAB)
69 target_link_libraries(parseAPI symLite)
70 else()
71 target_link_libraries(parseAPI symtabAPI)
72 endif()
73
74
75
76 INSTALL (DIRECTORY h/ DESTINATION include FILES_MATCHING PATTERN "*.h")