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