diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2008-10-22 02:56:07 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2008-10-22 02:56:07 +0000 |
commit | ce0c31ad8f24e16bba6fb62d88b2567ebeaf2dfe (patch) | |
tree | 54f8fc6127c287475e46d17162c7f3ad1e17a7ba /cmake | |
parent | 0fab662e39e35005f9efa1e979a528b34ed913db (diff) | |
download | external_llvm-ce0c31ad8f24e16bba6fb62d88b2567ebeaf2dfe.zip external_llvm-ce0c31ad8f24e16bba6fb62d88b2567ebeaf2dfe.tar.gz external_llvm-ce0c31ad8f24e16bba6fb62d88b2567ebeaf2dfe.tar.bz2 |
CMake: `make install' for libraries, executables and header files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-x | cmake/modules/AddLLVM.cmake | 7 | ||||
-rwxr-xr-x | cmake/modules/AddPartiallyLinkedObject.cmake | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index d60b288..0b7d9c8 100755 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -7,6 +7,9 @@ macro(add_llvm_library name) if( LLVM_COMMON_DEPENDS ) add_dependencies( ${name} ${LLVM_COMMON_DEPENDS} ) endif( LLVM_COMMON_DEPENDS ) + install(TARGETS ${name} + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) endmacro(add_llvm_library name) @@ -34,12 +37,16 @@ endmacro(add_llvm_executable name) macro(add_llvm_tool name) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_TOOLS_BINARY_DIR}) add_llvm_executable(${name} ${ARGN}) + install(TARGETS ${name} + RUNTIME DESTINATION bin) endmacro(add_llvm_tool name) macro(add_llvm_example name) # set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_EXAMPLES_BINARY_DIR}) add_llvm_executable(${name} ${ARGN}) + install(TARGETS ${name} + RUNTIME DESTINATION examples) endmacro(add_llvm_example name) diff --git a/cmake/modules/AddPartiallyLinkedObject.cmake b/cmake/modules/AddPartiallyLinkedObject.cmake index 6968857..4aba81f 100755 --- a/cmake/modules/AddPartiallyLinkedObject.cmake +++ b/cmake/modules/AddPartiallyLinkedObject.cmake @@ -32,4 +32,6 @@ macro(add_partially_linked_object lib) set( llvm_libs ${llvm_libs} ${pll} PARENT_SCOPE) set( llvm_lib_targets ${llvm_lib_targets} ${tnplo} PARENT_SCOPE ) endif( MSVC ) + install(FILES ${pll} + DESTINATION lib) endmacro(add_partially_linked_object lib) |