Warning, /sdk/elf-dissector/src/lib/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(libelfdisector_srcs 0002 elf/elfdynamicentry.cpp 0003 elf/elfdynamicsection.cpp 0004 elf/elffile.cpp 0005 elf/elffileset.cpp 0006 elf/elfgnudebuglinksection.cpp 0007 elf/elfgnuhashsection.cpp 0008 elf/elfgnusymbolversiontable.cpp 0009 elf/elfgnusymbolversiondefinition.cpp 0010 elf/elfgnusymbolversiondefinitionauxiliaryentry.cpp 0011 elf/elfgnusymbolversiondefinitionssection.cpp 0012 elf/elfgnusymbolversionrequirement.cpp 0013 elf/elfgnusymbolversionrequirementauxiliaryentry.cpp 0014 elf/elfgnusymbolversionrequirementssection.cpp 0015 elf/elfgotentry.cpp 0016 elf/elfgotsection.cpp 0017 elf/elfhashsection.cpp 0018 elf/elfheader.cpp 0019 elf/elfnoteentry.cpp 0020 elf/elfnotesection.cpp 0021 elf/elfpltentry.cpp 0022 elf/elfpltsection.cpp 0023 elf/elfrelocationentry.cpp 0024 elf/elfrelocationsection.cpp 0025 elf/elfreverserelocator.cpp 0026 elf/elfsectionheader.cpp 0027 elf/elfsection.cpp 0028 elf/elfsegmentheader.cpp 0029 elf/elfstringtablesection.cpp 0030 elf/elfsymboltableentry.cpp 0031 elf/elfsymboltablesection.cpp 0032 elf/elfsysvhashsection.cpp 0033 0034 demangle/demangler.cpp 0035 0036 disassmbler/disassembler.cpp 0037 0038 checks/ldbenchmark.cpp 0039 checks/structurepackingcheck.cpp 0040 checks/dependenciescheck.cpp 0041 checks/virtualdtorcheck.cpp 0042 checks/deadcodefinder.cpp 0043 0044 printers/dwarfprinter.cpp 0045 printers/dynamicsectionprinter.cpp 0046 printers/elfprinter.cpp 0047 printers/gnuversionprinter.cpp 0048 printers/notesectionprinter.cpp 0049 printers/relocationprinter.cpp 0050 printers/symbolprinter.cpp 0051 0052 optimizers/dependencysorter.cpp 0053 ) 0054 if (HAVE_DWARF) 0055 list(APPEND libelfdisector_srcs 0056 dwarf/dwarfaddressranges.cpp 0057 dwarf/dwarfcudie.cpp 0058 dwarf/dwarfinfo.cpp 0059 dwarf/dwarfdie.cpp 0060 dwarf/dwarfexpression.cpp 0061 dwarf/dwarfleb128.cpp 0062 dwarf/dwarfline.cpp 0063 dwarf/dwarfranges.cpp 0064 ) 0065 endif() 0066 0067 kde_source_files_enable_exceptions(elf/elffile.cpp) 0068 add_library(libelfdissector STATIC ${libelfdisector_srcs}) 0069 target_link_libraries(libelfdissector PUBLIC Qt5::Core PRIVATE Binutils::Iberty Binutils::Opcodes) 0070 if (HAVE_DWARF) 0071 target_link_libraries(libelfdissector PRIVATE Dwarf::Dwarf) 0072 endif() 0073 if (Capstone_FOUND) 0074 target_link_libraries(libelfdissector PRIVATE PkgConfig::Capstone) 0075 endif() 0076 # Rounabout FreeBSD specialty: binutils internals need libintl, 0077 # which isn't linked by default because we use the binutils static libs. 0078 if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") 0079 find_package(Intl REQUIRED) 0080 if(Intl_FOUND) 0081 if(TARGET Intl::Intl) 0082 target_link_libraries(libelfdissector PRIVATE Intl::Intl) 0083 else() 0084 target_link_libraries(libelfdissector PRIVATE ${Intl_LIBRARIES}) 0085 endif() 0086 endif() 0087 endif() 0088 0089 add_subdirectory(checks)