1. Fix x86-64 codegen for binary operators with 64-bit imm values
[dyninst.git] / examples / CMakeLists.txt
1
2
3 add_executable(unstrip unstrip/unstrip.C
4                        unstrip/util.C
5                        unstrip/types.C
6                        unstrip/semanticDescriptor.C
7                        unstrip/database.C
8                        unstrip/fingerprint.C
9                        unstrip/callback.C)
10 add_dependencies(unstrip parseAPI symtabAPI instructionAPI common)
11 target_link_libraries(unstrip parseAPI symtabAPI instructionAPI common dynDwarf dynElf ${Boost_LIBRARIES})
12
13 add_executable(codeCoverage codeCoverage/codeCoverage.C)
14 add_dependencies(codeCoverage dyninstAPI patchAPI parseAPI symtabAPI instructionAPI pcontrol common stackwalk dynDwarf dynElf)
15 target_link_libraries(codeCoverage dyninstAPI patchAPI parseAPI symtabAPI instructionAPI pcontrol common stackwalk dynDwarf dynElf ${Boost_LIBRARIES})
16
17 add_library(Inst SHARED codeCoverage/libInst.C)
18
19 add_executable(cfg_to_dot ../parseAPI/doc/example.cc)
20 add_dependencies(cfg_to_dot parseAPI symtabAPI instructionAPI common dynDwarf dynElf)
21 target_link_libraries(cfg_to_dot parseAPI symtabAPI instructionAPI common dynDwarf dynElf ${Boost_LIBRARIES})
22 #add_executable(retee)
23
24 install (TARGETS cfg_to_dot unstrip codeCoverage Inst
25         RUNTIME DESTINATION ${INSTALL_BIN_DIR}
26         LIBRARY DESTINATION ${INSTALL_LIB_DIR}
27         ARCHIVE DESTINATION ${INSTALL_LIB_DIR}
28         PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR}
29 )
30
31 install (
32         FILES unstrip/ddb.db unstrip/params.db unstrip/unistd.db DESTINATION ${INSTALL_BIN_DIR}
33 )