Building DevDat requires the following software installed:
- A C++17-compliant compiler
- CMake
>= 3.15 - Cuda
>=10.1
The recommended way to build and install DevDat is with an out-of-source build:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/local
cmake --build build --target installThis will install DevDat to $HOME/local by default.
If you want to install to a different location, adjust the CMAKE_INSTALL_PREFIX accordingly.
Note: If you install to a custom location, set
CMAKE_PREFIX_PATHwhen using DevDat in other projects:cmake -S . -B build -DCMAKE_PREFIX_PATH=$HOME/local
To build the example, first ensure DevDat is installed as above. Then:
cmake -S examples -B examples/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$HOME/local
cmake --build examples/buildTo run the example:
./examples/build/devdat_examplesIf you enabled tests (-DBUILD_TESTING=ON):
cmake -S . -B build -DBUILD_TESTING=ON
cmake --build build
cd build
ctestToDo