Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / tools / llvm-rc / CMakeLists.txt
blob9fddba881d70f9abb5e8a12e1781a282a2272fa3
1 set(LLVM_LINK_COMPONENTS
2   Object
3   Option
4   Support
5   TargetParser
6   )
8 set(LLVM_TARGET_DEFINITIONS Opts.td)
9 tablegen(LLVM Opts.inc -gen-opt-parser-defs)
10 add_public_tablegen_target(RcOptsTableGen)
12 set(LLVM_TARGET_DEFINITIONS WindresOpts.td)
13 tablegen(LLVM WindresOpts.inc -gen-opt-parser-defs)
14 add_public_tablegen_target(WindresOptsTableGen)
16 add_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   )
28 add_llvm_tool_symlink(llvm-windres llvm-rc)
30 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
31   add_llvm_tool_symlink(windres llvm-rc)
32 endif()