[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / tools / llvm-objcopy / CMakeLists.txt
blob50c890b59769e0a6fcbc4c4112628b3ab0994695
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/ELFConfig.cpp
25   ELF/ELFObjcopy.cpp
26   ELF/Object.cpp
27   MachO/MachOObjcopy.cpp
28   MachO/MachOReader.cpp
29   MachO/MachOWriter.cpp
30   MachO/MachOLayoutBuilder.cpp
31   MachO/Object.cpp
32   DEPENDS
33   ObjcopyOptsTableGen
34   StripOptsTableGen
35   )
37 add_llvm_tool_symlink(llvm-strip llvm-objcopy)
39 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
40   add_llvm_tool_symlink(objcopy llvm-objcopy)
41   add_llvm_tool_symlink(strip llvm-objcopy)
42 endif()