llvm-6502/tools/lto/CMakeLists.txt
2011-03-12 16:48:49 +00:00

16 lines
299 B
CMake

set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
ipo scalaropts linker bitreader bitwriter)
add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" )
# TODO: build a static library too.
set(BUILD_SHARED_LIBS ON)
add_llvm_library(LTO
LTOCodeGenerator.cpp
lto.cpp
LTOModule.cpp
)