[llvm-exegesis] Fix wrong index type.
[llvm-complete.git] / tools / llvm-objcopy / CMakeLists.txt
blobb0cd66be5b3a314ce51b67e9858e859f183566f3
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   llvm-objcopy.cpp
18   Object.cpp
19   DEPENDS
20   ObjcopyOptsTableGen
21   StripOptsTableGen
22   )
24 add_llvm_tool_symlink(llvm-strip llvm-objcopy)
26 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
27   add_llvm_tool_symlink(objcopy llvm-objcopy)
28   add_llvm_tool_symlink(strip llvm-objcopy)
29 endif()