Wiki

Clone wiki

scl-manips-v2 / configure / cmake

Typical CMake Code Config in SCL

We use cmake to autogenerate Makefiles. This helps us avoid the tedious process of specifying object code stuff in normal Makefiles. Moreover, cmake prints things nicely.

A typical setup will have a CMakeFile.txt in the base folder, and use something like this:

mkdir -p build_rel &&
cd build_rel &&
cmake .. -DCMAKE_BUILD_TYPE=Release &&
make -j8 &&
cp -rf scl_tutorial6_control_humanoid ../ &&
cd ..

The above was drawn from scl tutorial 6. Look at the other tutorials for some example make and cmake files.

Updated