Building with Cmake to create an Eclipse Project

From Dmz-portal

Jump to: navigation, search

Assuming that the llvm source is in /local/workspace/llvm, our build
directory is /local/llvm_cmake and the install directory (if we want to install) is
/local/llvm_install

1. Create the build directory and install directory(if needed).

mkdir /local/llvm_cmake
mdkir /local/llvm_install

2. Run Cmake

cd /local/llvm_cmake

cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_INSTALL_PREFIX:STRING="/local/llvm_install" /local/workspace/llvm

3. If you do a make, then even all the .inc files and such will have their entities accessible.

cd /local/llvm_cmake
make


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox