Cmake

From Manta

Building CMake

Manta uses Kitware's CMake tool for build configuration. This tool allows a developer to select many options at build time like the size of ray packets or the type to use for Manta::Real.

Obtaining CMake

Version 2.2 or higher is required to build the entire repository although earlier versions will build the core shared libraries. An early version is available on most linux distributions by default.

See the cmake.org download (http://www.cmake.org/HTML/Download.html) page.

Building

First uncompress the source distribution you are using. I've used cmake 2.2.2 on all platforms so far. This example build was performed on SGI ProPack4.

The commands used to build are pretty much the same as every other non-cmake open source project out there-- you configure, run make, and then make install...

tar -xzf cmake-2.2.2.tar.gz
cd cmake-2.2.2/

Next run configure, setting any options like an install prefix as necessary. This will perform the usual configure check and will build a simple cmake engine to boot strap the rest of the build. Set the environment variables CXX and CC to the compilers you are using.

./configure --prefix=/home/sci/abe/build-suse

When the configure finishes, it will output "CMake has bootstrapped. Now run gmake." execute gmake (Which is usually the make command, except on non-linux systems where gmake must be run explicitly.)

make

The Intel compilers will produce several warnings while compiling. It takes a little while to build all of the object files.

Lastly install the build:

make install

If the bin/ directory under the prefix you specified is in your path, you should be able to find the binary:

rehash
which ccmake
/home/sci/abe/build-suse/bin/ccmake