In this project, using GNU make command to build and test.
Run make
command as follows. (e.g. type make
Enter
at command-line)
To build all: (bin/cparsec2
, lib/libcparsec2.a
)
# at the top of project directory
make
To build executable file only: (bin/cparsec2
)
# at the top of project directory
make build
To build archive file (i.e. library) only: (lib/libcparsec2.a
)
# at the top of project directory
make lib
To run sample application: (bin/cparsec2
)
# at the top of project directory
make test
To cleanup:
# at the top of project directory
make clean
This project uses Catch2 - A modern, C++-native, header-only, test framework for unit-tests.
All unit-tests can be built and/or ran by GNU make command.
To build unit-tests: (test/tests
)
# at the top of project directory
make -C test
# or at the 'test' directory
cd test
make
To run unit-tests: (test/tests
)
# at the top of project directory
make test -C test
# or at the 'test' directory
cd test
make test
To cleanup unit-tests:
# at the top of project directory
make clean -C test
# or at the 'test' directory
cd test
make clean