Move dynutil/h to common/h; move common/h to common/src. Update CMakeLists.txt
[dyninst.git] / instructionAPI / CMakeLists.txt
1 # CMake configuration for instructionAPI directory
2
3 include_directories (
4     ${PROJECT_SOURCE_DIR}/instructionAPI/src
5   )
6
7
8 set (SRC_LIST
9      src/Instruction.C 
10      src/InstructionAST.C 
11      src/Operation.C 
12      src/Operand.C 
13      src/Register.C 
14      src/Expression.C 
15      src/BinaryFunction.C 
16      src/InstructionCategories.C 
17      src/Immediate.C 
18      src/InstructionDecoder.C 
19      src/InstructionDecoder-x86.C
20      src/InstructionDecoder-power.C 
21      src/InstructionDecoderImpl.C
22   )
23
24 add_library (instructionAPI ${SRC_LIST})
25 target_link_libraries (instructionAPI common)
26 FILE (GLOB headers "h/*.h")
27 set_target_properties (instructionAPI PROPERTIES PUBLIC_HEADER "${headers}")
28
29 INSTALL (TARGETS instructionAPI
30         EXPORT dyninst
31         LIBRARY DESTINATION ${INSTALL_LIB_DIR}
32         PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR})