TODO: Add summary of project, links to docs etc.
Building SimEng requires CMake and a compiler that supports C++17.
Configure with CMake, specifying the path to your desired installation directory if necessary:
cmake <path_to_simeng_source> \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=<target_install_directory>
Once configured, use make
(or your preferred build tool) to build, and
use make install
to install.
SimEng uses googletest for unit tests. The sources are included as a git submodule, which need to be fetched in one of two ways:
- If cloning for the first time, use the
--recurse-submodules
option:
git clone --recurse-submodules https://github.com/UoB-HPC/SimEng.git
- If you already have a clone, update the submodules:
git submodule init
git submodule update
To run the tests, call the unittests
executable from your build folder:
./test/unit/unittests