1set(LLVM_LINK_COMPONENTS 2 ${LLVM_TARGETS_TO_BUILD} 3 Core 4 LTO 5 MC 6 MCDisassembler 7 Support 8 ) 9 10add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" ) 11 12set(SOURCES 13 LTODisassembler.cpp 14 lto.cpp 15 ) 16 17set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports) 18 19add_llvm_library(LTO SHARED ${SOURCES}) 20 21install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h 22 DESTINATION include/llvm-c) 23