xref: /llvm-project/llvm/tools/llvm-rc/CMakeLists.txt (revision f09cf34d00625e57dea5317a3ac0412c07292148)
1set(LLVM_LINK_COMPONENTS
2  Object
3  Option
4  Support
5  TargetParser
6  )
7
8set(LLVM_TARGET_DEFINITIONS Opts.td)
9tablegen(LLVM Opts.inc -gen-opt-parser-defs)
10add_public_tablegen_target(RcOptsTableGen)
11
12set(LLVM_TARGET_DEFINITIONS WindresOpts.td)
13tablegen(LLVM WindresOpts.inc -gen-opt-parser-defs)
14add_public_tablegen_target(WindresOptsTableGen)
15
16add_llvm_tool(llvm-rc
17  llvm-rc.cpp
18  ResourceFileWriter.cpp
19  ResourceScriptCppFilter.cpp
20  ResourceScriptParser.cpp
21  ResourceScriptStmt.cpp
22  ResourceScriptToken.cpp
23  DEPENDS
24  WindresOptsTableGen
25  GENERATE_DRIVER
26  )
27
28add_llvm_tool_symlink(llvm-windres llvm-rc)
29
30if(LLVM_INSTALL_BINUTILS_SYMLINKS)
31  add_llvm_tool_symlink(windres llvm-rc)
32endif()
33