[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / tools / llvm-objcopy / CMakeLists.txt
blobca94d4a4774064d6b619fa2afa72ffbeb62faead
1 set(LLVM_LINK_COMPONENTS
2   Object
3   ObjCopy
4   Option
5   Support
6   MC
7   BinaryFormat
8   )
10 set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)
11 tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)
12 add_public_tablegen_target(ObjcopyOptsTableGen)
14 set(LLVM_TARGET_DEFINITIONS InstallNameToolOpts.td)
15 tablegen(LLVM InstallNameToolOpts.inc -gen-opt-parser-defs)
16 add_public_tablegen_target(InstallNameToolOptsTableGen)
18 set(LLVM_TARGET_DEFINITIONS BitcodeStripOpts.td)
19 tablegen(LLVM BitcodeStripOpts.inc -gen-opt-parser-defs)
20 add_public_tablegen_target(BitcodeStripOptsTableGen)
22 set(LLVM_TARGET_DEFINITIONS StripOpts.td)
23 tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)
24 add_public_tablegen_target(StripOptsTableGen)
26 add_llvm_tool(llvm-objcopy
27   ObjcopyOptions.cpp
28   llvm-objcopy.cpp
29   DEPENDS
30   ObjcopyOptsTableGen
31   InstallNameToolOptsTableGen
32   StripOptsTableGen
33   GENERATE_DRIVER
34   )
36 add_llvm_tool_symlink(llvm-install-name-tool llvm-objcopy)
37 add_llvm_tool_symlink(llvm-bitcode-strip llvm-objcopy)
38 add_llvm_tool_symlink(llvm-strip llvm-objcopy)
40 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
41   add_llvm_tool_symlink(objcopy llvm-objcopy)
42   add_llvm_tool_symlink(strip llvm-objcopy)
43 endif()
45 if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
46   add_llvm_tool_symlink(install_name_tool llvm-install-name-tool)
47   add_llvm_tool_symlink(bitcode_strip llvm-bitcode-strip)
48 endif()