Skip to content

Latest commit

 

History

History
83 lines (67 loc) · 1.79 KB

HOW_TO_BUILD.org

File metadata and controls

83 lines (67 loc) · 1.79 KB

How to build each subproject individually

How to build CPARSEC2 library

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

How to build and/or run unit-tests

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