aqnwb 0.1.0
|
Please ensure that the required libraries described in the User Requirements section are installed and clone the latest AqNWB source via:
For developers we also recommend to install the following optional command line tools used for generating the documentation, for code quality checks, and for debugging.
dev
target=format-check
, target=format-fix
)target=spell-check
, target=spell-fix
)Build system targets that are only useful for developers of AqNWB are hidden if the aqnwb_DEVELOPER_MODE
option is disabled. Enabling this option makes tests and other developer targets and options available. You can enable the option when configuring the build by adding -Daqnwb_DEVELOPER_MODE=ON
, e.g.,
Use the flag -DBUILD_SHARED_LIBS=ON
to generate the shared library file.
HDF5_ROOT
and BOOST_ROOT
environment variables to point to install directories of HDF5 and BOOST respectively.As a developer, you can create your own dev preset by making a CMakeUserPresets.json
file at the root of the project:
Replace <os>
in the CMakeUserPresets.json
file with the name of the operating system you have (win64
, linux
or darwin
).
You can configure, build and test the project respectively with the following commands from the project root on any operating system with any build system:
Additional targets can be invoked when in development mode using the commands below
format-check
: run the clang-format
tool on the codebase to check for formatting errorsformat-fix
: run the clang-format
tool on the codebase with FIX=YES
to both check and automatically fix for formatting errorsspell-check
: run the codespell
tool on the codebase to check for common spelling errorsspell-fix
: run the codespell
tool on the codebase with FIX=YES
to both check and automatically fix common spelling errorsdocs
: builds the documentation using Doxygen. (Note: run cmake --preset=dev -DBUILD_DOCS=ON
before building to add docs target)