Compiling NRG Ljubljana from source

Installation steps

  1. Download the source code of the latest stable version by cloning the rokzitko/NRGLjubljana repository from GitHub:

    $ git clone https://github.com/rokzitko/NRGLjubljana nrgljubljana.src
    
  2. Create and move to a new directory where you will compile the code:

    $ mkdir nrgljubljana.build && cd nrgljubljana.build
    
  3. In the build directory call cmake, including any additional custom CMake options, see below:

    $ cmake -DCMAKE_INSTALL_PREFIX=path_to_install_dir ../nrgljubljana.src
    
  4. Compile the code, run the tests and install the application:

    $ make
    $ make test
    $ make install
    

Versions

To use a particular version, go into the directory with the sources, and look at all available versions:

$ cd nrgljubljana.src && git tag

Checkout the version of the code that you want:

$ git checkout 2019/12

and follow steps 2 to 4 above to compile the code.

Custom CMake options

The compilation of NRG Ljubljana can be configured using CMake-options:

cmake ../nrgljubljana.src -DOPTION1=value1 -DOPTION2=value2 ...
Options Syntax
Specify an installation path -DCMAKE_INSTALL_PREFIX=path
Build in Debugging Mode -DCMAKE_BUILD_TYPE=Debug
Disable testing (not recommended) -DBuild_Tests=OFF
Build the documentation -DBuild_Documentation=ON