GCC 4.8 build fixes: ensure all extern template declarations are in fact extern'ed...
[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/InstructionDecoder-aarch64.C 
22      src/InstructionDecoderImpl.C
23   )
24 SET_SOURCE_FILES_PROPERTIES(${SRC_LIST} PROPERTIES LANGUAGE CXX)
25
26 ADD_DEFINITIONS(-DINSTRUCTION_LIB)
27
28 dyninst_library(instructionAPI common)
29
30 if(UNIX)
31   target_link_private_libraries(instructionAPI ${Boost_LIBRARIES})
32 endif()