Skip to content

Cmake build options

Stuart Campbell edited this page Nov 8, 2016 · 2 revisions

The version in svn provides the following cmake options:

cmake PATH-TO-BINNER-TREE -DNOGL=yes -DBINNER_INSTALL_DIR=PATH-TO-INSTALL

A few sample commands:

> pwd
/home/huangj/binner/build
> cmake ..       // this builds binner in default mode 
                 // with opengl components
                 // installation goes under ../bin, ../lib

> cmake .. -DNOGL=yes
                 // no opengl components, but otherwise in the default mode

> cmake .. -DINNER_INSTALL_DIR=/usr/local
                 // change installation destination to /usr/local
                 // otherwise in the default mode

> cmake .. -DNOGL=yes -DINNER_INSTALL_DIR=/usr/local
> cmake .. -DINNER_INSTALL_DIR=/usr/local -DNOGL=yes
                 // these two commands do exactly the same thing
                 // change installation destination 
                 // and only build the none opengl part
Clone this wiki locally