Displaying 1 result from an estimated 1 matches for "myprojectusingllvm".
2010 Jun 18
1
[LLVMdev] export of CMake project
...s.txt we need to install the LLVM export
file:
# install LLVM package
install(EXPORT LLVM DESTINATION cmake)
In my own project I just need to do the following:
# import llvm
find_path(LLVM_CMAKE_DIR llvm.cmake)
include(${LLVM_CMAKE_DIR}/llvm.cmake)
...
# set dependencies
target_link_libraries(MyProjectUsingLLVM
LLVMSupport
LLVMSystem
... all llvm and cmake libs ...
)
-Jochen
-- here the patch for llvm --
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake (revision 104943)
+++ cmake/modules/AddLLVM.cmake (working...