building

rollnw uses cmake as its build system and more specifically CMakePresets.json.

To build the library, all one needs to do is use the following cmake commands. This example also builds tests which are not enabled by default.

$ cd path/to/rollnw
$ cmake --preset linux -DROLLNW_BUILD_TESTS=ON
$ cmake --build --preset default
$ ctest --preset default
In order to run all of the tests, you can help the library locate Neverwinter Nights installation

paths by exporting the following ENV vars, if your install is in a non-standard location:

$ export NWN_ROOT=path/to/game
$ export NWN_USER=path/to/nwn-user-dir