llvm/llvm/lib/Object/CMakeLists.txt

add_llvm_component_library(LLVMObject
  Archive.cpp
  ArchiveWriter.cpp
  Binary.cpp
  BuildID.cpp
  COFFImportFile.cpp
  COFFModuleDefinition.cpp
  COFFObjectFile.cpp
  Decompressor.cpp
  DXContainer.cpp
  ELF.cpp
  ELFObjectFile.cpp
  Error.cpp
  GOFFObjectFile.cpp
  FaultMapParser.cpp
  IRObjectFile.cpp
  IRSymtab.cpp
  MachOObjectFile.cpp
  MachOUniversal.cpp
  Minidump.cpp
  ModuleSymbolTable.cpp
  Object.cpp
  ObjectFile.cpp
  OffloadBinary.cpp
  RecordStreamer.cpp
  RelocationResolver.cpp
  SymbolicFile.cpp
  SymbolSize.cpp
  TapiFile.cpp
  TapiUniversal.cpp
  MachOUniversalWriter.cpp
  WasmObjectFile.cpp
  WindowsMachineFlag.cpp
  WindowsResource.cpp
  XCOFFObjectFile.cpp

  ADDITIONAL_HEADER_DIRS
  ${LLVM_MAIN_INCLUDE_DIR}/llvm/Object

  DEPENDS
  intrinsics_gen
  llvm_vcsrevision_h

  LINK_COMPONENTS
  BitReader
  Core
  MC
  IRReader
  BinaryFormat
  MCParser
  Support
  TargetParser
  TextAPI
  )