forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: system for providing llvm-config-like features to the user.
The user can use a cmake function for obtaining the LLVM libraries corresponding to a list of LLVM components. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110560 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Oscar Fuentes
committed
Aug 9, 2010
1 parent
fd2f3e6
commit 6252e98
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/share/llvm/cmake") | ||
|
||
configure_file( | ||
LLVM.cmake | ||
${llvm_cmake_builddir}/LLVM.cmake) | ||
|
||
install(FILES | ||
${llvm_cmake_builddir}/LLVM.cmake | ||
LLVMConfig.cmake | ||
LLVMLibDeps.cmake | ||
DESTINATION share/llvm/cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@) | ||
|
||
set(llvm_libs @llvm_libs@) | ||
|
||
set(llvm_lib_targets @llvm_lib_targets@) | ||
|
||
set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@) | ||
|
||
set(LLVM_TOOLS_BINARY_DIR @LLVM_TOOLS_BINARY_DIR@) | ||
|
||
set(HAVE_LLVM_CONFIG @HAVE_LLVM_CONFIG@) | ||
|
||
if( NOT EXISTS LLVMConfig.cmake ) | ||
set(CMAKE_MODULE_PATH | ||
${CMAKE_MODULE_PATH} | ||
"@LLVM_SOURCE_DIR@/cmake/modules") | ||
endif() | ||
|
||
include( LLVMConfig ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters