Skip to content

Cmake Guide

ksmith0 edited this page Aug 16, 2016 · 8 revisions

#Introduction The move to cmake was made for a number of reasons. It provides us with a flexible build platform allowing relatively simple compiling on a large number of systems. Second, we are able to perform more robust checks for prerequisites before the compilation of the program begins. Finally, The files that are used to build are significantly simpler to understand and read. There are more files related to building the software, but the information density is much lower.

#Building You should create a directory in which you can build the software. This can be named anything that you choose. The software can then be built by the following series of commands.

mkdir build
cd build/
cmake /path/to/paass 

If cmake is successful you will see a series of messages similar to this. However, if cmake fails it will tell you of the missing any packages. You should install them and run cmake again.

####Defaults The default installation directory is /path/to/paass/install. By default a number of the compile flags are enabled. You can find the a comprehensive list of CMake flags here.

Clone this wiki locally