[test/Object] - Move/rewrite 2 more test cases.
[llvm-complete.git] / tools / llvm-objcopy / CMakeLists.txt
blobd281bf887f692e5f0da679396064491fdd5e3be6
1 set(LLVM_LINK_COMPONENTS
2   Object
3   Option
4   Support
5   MC
6   )
8 set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)
9 tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)
10 add_public_tablegen_target(ObjcopyOptsTableGen)
12 set(LLVM_TARGET_DEFINITIONS StripOpts.td)
13 tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)
14 add_public_tablegen_target(StripOptsTableGen)
16 add_llvm_tool(llvm-objcopy
17   Buffer.cpp
18   CopyConfig.cpp
19   llvm-objcopy.cpp
20   COFF/COFFObjcopy.cpp
21   COFF/Object.cpp
22   COFF/Reader.cpp
23   COFF/Writer.cpp
24   ELF/ELFObjcopy.cpp
25   ELF/Object.cpp
26   MachO/MachOObjcopy.cpp
27   MachO/MachOReader.cpp
28   MachO/MachOWriter.cpp
29   MachO/MachOLayoutBuilder.cpp
30   MachO/Object.cpp
31   DEPENDS
32   ObjcopyOptsTableGen
33   StripOptsTableGen
34   )
36 add_llvm_tool_symlink(llvm-strip llvm-objcopy)
38 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
39   add_llvm_tool_symlink(objcopy llvm-objcopy)
40   add_llvm_tool_symlink(strip llvm-objcopy)
41 endif()