1set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm/cmake") 2set(LLVM_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) 3 4get_property(llvm_libs GLOBAL PROPERTY LLVM_LIBS) 5 6configure_file( 7 LLVMConfig.cmake.in 8 ${llvm_cmake_builddir}/LLVMConfig.cmake 9 @ONLY) 10 11configure_file( 12 LLVMConfigVersion.cmake.in 13 ${llvm_cmake_builddir}/LLVMConfigVersion.cmake 14 @ONLY) 15 16install(FILES 17 ${llvm_cmake_builddir}/LLVMConfig.cmake 18 ${llvm_cmake_builddir}/LLVMConfigVersion.cmake 19 LLVM-Config.cmake 20 LLVMLibDeps.cmake 21 DESTINATION share/llvm/cmake) 22 23install(DIRECTORY . 24 DESTINATION share/llvm/cmake 25 FILES_MATCHING PATTERN *.cmake 26 PATTERN .svn EXCLUDE 27 PATTERN LLVMConfig.cmake EXCLUDE 28 PATTERN LLVMConfigVersion.cmake EXCLUDE 29 PATTERN LLVM-Config.cmake EXCLUDE 30 PATTERN LLVMLibDeps.cmake EXCLUDE 31 PATTERN FindBison.cmake EXCLUDE 32 PATTERN GetTargetTriple.cmake EXCLUDE 33 PATTERN VersionFromVCS.cmake EXCLUDE 34 PATTERN CheckAtomic.cmake EXCLUDE) 35