- Install vcpkg.
- Install dependencies using vcpkg:
./vcpkg install gsl yaml-cpp fmt libpq libpqxx sqlite3 date args cli11 gtest catch easyloggingpp
To build the project, run the following commands:
./scripts/build.shAlternatively, you can use the Makefile targets:
make install-deps
make generate
make build
make test
make runBy default, test output is concise (warn level). To enable verbose logging:
MALASIM_LOG_LEVEL=info ./build/bin/malasim_testAvailable levels: trace, debug, info, warn, err, critical
Use -o/--output to select the simulation output. A path ending in / is
treated as a directory and is created when missing; an existing directory uses
the standard reporter filenames. A path without a trailing separator is used
as the SQLite database filename override, including when the file does not yet
exist.
# Write the standard database file into a directory
./build/bin/malasim -i input.yml -o outputs/
# Write the SQLite output to this exact filename
./build/bin/malasim -i input.yml -o outputs/run.db