Update link components for llvm-dis and LTO.
[oota-llvm.git] / tools / lto / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   ${LLVM_TARGETS_TO_BUILD}
3   ipo scalaropts linker bitreader bitwriter)
4
5 add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" )
6
7 # TODO: build a static library too.
8 set(BUILD_SHARED_LIBS ON)
9
10 add_llvm_library(LTO
11   LTOCodeGenerator.cpp
12   lto.cpp
13   LTOModule.cpp
14   )
15