xref: /llvm-project/llvm/tools/llvm-readtapi/CMakeLists.txt (revision c6f29dbb596ff0fd6d8b6445eabbf01f6d063c8c)
1set(LLVM_LINK_COMPONENTS
2  BinaryFormat
3  Object
4  Support
5  Option
6  TextAPI
7  TextAPIBinaryReader
8  )
9
10set(LLVM_TARGET_DEFINITIONS TapiOpts.td)
11tablegen(LLVM TapiOpts.inc -gen-opt-parser-defs)
12add_public_tablegen_target(ReadTAPIOptsTableGen)
13
14add_llvm_tool(llvm-readtapi
15  llvm-readtapi.cpp
16  DiffEngine.cpp
17
18  DEPENDS
19  ReadTAPIOptsTableGen
20  )
21
22if(LLVM_INSTALL_BINUTILS_SYMLINKS)
23  add_llvm_tool_symlink(readtapi llvm-readtapi)
24endif()
25