2010-09-13 23:59:48 +00:00
|
|
|
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm/cmake")
|
2011-04-10 16:17:49 +00:00
|
|
|
set(LLVM_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
2010-08-09 03:26:43 +00:00
|
|
|
|
2011-02-18 22:06:14 +00:00
|
|
|
get_property(llvm_libs GLOBAL PROPERTY LLVM_LIBS)
|
|
|
|
|
2011-07-29 23:52:01 +00:00
|
|
|
foreach(lib ${llvm_libs})
|
|
|
|
get_property(llvm_lib_deps GLOBAL PROPERTY LLVM_LIB_DEPS_${lib})
|
|
|
|
set(all_llvm_lib_deps
|
|
|
|
"${all_llvm_lib_deps}\nset_property(GLOBAL PROPERTY LLVM_LIB_DEPS_${lib} ${llvm_lib_deps})")
|
|
|
|
endforeach(lib)
|
|
|
|
|
2010-08-09 03:26:43 +00:00
|
|
|
configure_file(
|
2011-04-10 16:17:49 +00:00
|
|
|
LLVMConfig.cmake.in
|
|
|
|
${llvm_cmake_builddir}/LLVMConfig.cmake
|
|
|
|
@ONLY)
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
LLVMConfigVersion.cmake.in
|
|
|
|
${llvm_cmake_builddir}/LLVMConfigVersion.cmake
|
2010-09-13 23:59:48 +00:00
|
|
|
@ONLY)
|
2010-08-09 03:26:43 +00:00
|
|
|
|
|
|
|
install(FILES
|
2011-04-10 16:17:49 +00:00
|
|
|
${llvm_cmake_builddir}/LLVMConfig.cmake
|
|
|
|
${llvm_cmake_builddir}/LLVMConfigVersion.cmake
|
2011-04-05 17:02:48 +00:00
|
|
|
LLVM-Config.cmake
|
2010-09-13 23:59:48 +00:00
|
|
|
DESTINATION share/llvm/cmake)
|
2011-02-03 20:57:36 +00:00
|
|
|
|
|
|
|
install(DIRECTORY .
|
|
|
|
DESTINATION share/llvm/cmake
|
2011-02-07 02:22:23 +00:00
|
|
|
FILES_MATCHING PATTERN *.cmake
|
|
|
|
PATTERN .svn EXCLUDE
|
2011-04-10 16:17:49 +00:00
|
|
|
PATTERN LLVMConfig.cmake EXCLUDE
|
|
|
|
PATTERN LLVMConfigVersion.cmake EXCLUDE
|
2011-04-05 17:02:48 +00:00
|
|
|
PATTERN LLVM-Config.cmake EXCLUDE
|
2011-02-03 20:57:36 +00:00
|
|
|
PATTERN GetTargetTriple.cmake EXCLUDE
|
|
|
|
PATTERN VersionFromVCS.cmake EXCLUDE
|
|
|
|
PATTERN CheckAtomic.cmake EXCLUDE)
|