Install FTGL(optional) and GLEW, then:

cmake . -DCMAKE_BUILD_TYPE=RELEASE
make
make install

You may need to type ccmake . and change the PREFIX if your system prefers /usr instead of /usr/local.