Move dynutil/h to common/h; move common/h to common/src. Update CMakeLists.txt
[dyninst.git] / patchAPI / CMakeLists.txt
1 # CMake configuration for patchAPI directory
2
3 include_directories (
4     ${PROJECT_SOURCE_DIR}/patchAPI/src
5   )
6
7 set (SRC_LIST
8         src/AddrSpace.C 
9         src/Instrumenter.C 
10         src/PatchObject.C 
11         src/PatchBlock.C 
12         src/PatchEdge.C 
13         src/PatchFunction.C 
14         src/PatchMgr.C 
15         src/Point.C 
16         src/CFGMaker.C 
17         src/PointMaker.C 
18         src/Command.C 
19         src/PatchCallback.C 
20         src/ParseCallback.C 
21         src/PatchModifier.C 
22   )
23
24 add_library (patchAPI ${SRC_LIST})
25 target_link_libraries(patchAPI common)
26 target_link_libraries(patchAPI symtabAPI)
27 target_link_libraries(patchAPI instructionAPI)
28 target_link_libraries(patchAPI parseAPI)
29
30 FILE (GLOB headers "h/*.h")
31 set_target_properties (patchAPI PROPERTIES PUBLIC_HEADER "${headers}")
32
33
34 INSTALL (TARGETS patchAPI
35         EXPORT dyninst
36         LIBRARY DESTINATION ${INSTALL_LIB_DIR}
37         PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR})