| 1 |
|
| 2 |
set_source_group(SOURCES "Source Files" dd_addrmap.c |
| 3 |
dd_checkutil.c dd_common.c dd_regex.c dd_safe_strcpy.c |
| 4 |
dwarfdump.c dd_dwconf.c dd_helpertree.c |
| 5 |
dd_glflags.c dd_command_options.c dd_compiler_info.c |
| 6 |
dd_macrocheck.c |
| 7 |
dd_opscounttab.c |
| 8 |
print_abbrevs.c print_aranges.c |
| 9 |
dd_attr_form.c |
| 10 |
dd_canonical_append.c |
| 11 |
print_debugfission.c print_die.c |
| 12 |
dd_trace_abstract_origin_etc.c |
| 13 |
print_debug_addr.c |
| 14 |
print_debug_gnu.c |
| 15 |
print_debug_names.c print_debug_sup.c |
| 16 |
print_frames.c print_gdbindex.c |
| 17 |
print_hipc_lopc_attr.c |
| 18 |
print_lines.c |
| 19 |
print_llex_codes.c print_origloclist_codes.c |
| 20 |
print_loclists_codes.c |
| 21 |
print_loclists.c |
| 22 |
print_macro.c print_macinfo.c |
| 23 |
print_pubnames.c print_ranges.c |
| 24 |
print_rnglists.c |
| 25 |
print_str_offsets.c |
| 26 |
print_sections.c print_section_groups.c |
| 27 |
print_strings.c |
| 28 |
print_tag_attributes_usage.c |
| 29 |
dd_sanitized.c dd_strstrnocase.c |
| 30 |
dd_true_section_name.c dd_uri.c dd_utf8.c |
| 31 |
dd_getopt.c dd_makename.c |
| 32 |
dd_naming.c dd_esb.c dd_tsearchbal.c) |
| 33 |
|
| 34 |
set_source_group(HEADERS "Header Files" |
| 35 |
dd_addrmap.h dd_attr_form.h dd_checkutil.h dd_common.h dd_regex.h |
| 36 |
dd_safe_strcpy.h dd_dwconf.h |
| 37 |
dd_minimal.h |
| 38 |
dd_command_options.h dd_compiler_info.h |
| 39 |
dd_opscounttab.h |
| 40 |
print_debug_gnu.h |
| 41 |
dd_dwconf_using_functions.h dd_esb_using_functions.h |
| 42 |
dd_elf_cputype.h |
| 43 |
dd_pe_cputype.h |
| 44 |
dd_helpertree.h |
| 45 |
dd_canonical_append.h |
| 46 |
dwarfdump-af-table-ext.h dwarfdump-af-table-std.h |
| 47 |
dwarfdump-ta-ext-table.h dwarfdump-ta-table.h |
| 48 |
dwarfdump-tt-ext-table.h dwarfdump-tt-table.h |
| 49 |
dd_getopt.h dd_esb.h dd_glflags.h dd_globals.h |
| 50 |
dd_mac_cputype.h |
| 51 |
dd_macrocheck.h dd_defined_types.h |
| 52 |
dd_sanitized.h |
| 53 |
dd_naming.h dd_makename.h dd_tsearchbal.h print_frames.h |
| 54 |
dd_uri.h dd_utf8.h |
| 55 |
../../lib/libdwarf/libdwarf_private.h) |
| 56 |
|
| 57 |
set_source_group(CONFIGURATION_FILES "Configuration Files" |
| 58 |
${PROJECT_SOURCE_DIR}/cmake/config.h.in |
| 59 |
${PROJECT_BINARY_DIR}/config.h) |
| 60 |
|
| 61 |
add_executable(dwarfdump ${SOURCES} ${HEADERS} ${CONFIGURATION_FILES}) |
| 62 |
|
| 63 |
set_folder(dwarfdump src/bin/dwarfdump) |
| 64 |
|
| 65 |
target_compile_definitions(dwarfdump PRIVATE |
| 66 |
"CONFPREFIX=${CMAKE_INSTALL_PREFIX}/lib" ${DW_LIBDWARF_STATIC}) |
| 67 |
target_compile_options(dwarfdump PRIVATE ${DW_FWALL}) |
| 68 |
|
| 69 |
target_link_libraries(dwarfdump PRIVATE dwarf) |
| 70 |
|
| 71 |
install(TARGETS dwarfdump DESTINATION |
| 72 |
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
| 73 |
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
| 74 |
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
| 75 |
|
| 76 |
install(FILES dwarfdump.conf DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dwarfdump) |