[llvm] [cmake] Add possibility to use ChooseMSVCCRT.cmake when include LLVM library
[llvm-core.git] / tools / llvm-lipo / CMakeLists.txt
blob992785723f03e308c19d7b11a62bc72123486f1f
1 set(LLVM_LINK_COMPONENTS
2   ${LLVM_TARGETS_TO_BUILD}
3   Object
4   Option
5   Support
8 set(LLVM_TARGET_DEFINITIONS LipoOpts.td)
9 tablegen(LLVM LipoOpts.inc -gen-opt-parser-defs)
10 add_public_tablegen_target(LipoOptsTableGen)
12 add_llvm_tool(llvm-lipo
13   llvm-lipo.cpp
14   DEPENDS
15   LipoOptsTableGen
18 if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
19   add_llvm_tool_symlink(lipo llvm-lipo)
20 endif()