picolibrary

Usage

Table of Contents

  1. Dependency
    1. Configuration Options
  2. Development

Dependency

To use picolibrary as a dependency, simply add the subdirectory containing the repository to a CMake build, and link with the picolibrary static library.

add_subdirectory( picolibrary )
target_link_libraries(
    foo
    picolibrary
)

The picolibrary static library does not provide an implementation for ::picolibrary::trap_fatal_error(). See include/picolibrary/fatal_error.h for more information.

The picolibrary static library does not include ::picolibrary::version(). To use ::picolibrary::version(), link with the picolibrary-version static library.

target_link_libraries(
    foo
    picolibrary
    picolibrary-version
)

Configuration Options

picolibrary supports the following project configuration options:

Development

The repository’s Git pre-commit hook script is the simplest way to configure, build, and test picolibrary during development. See the pre-commit script’s help text for usage details.

./git/hooks/pre-commit --help

Additional checks, such as static analysis, are performed by the repository’s GitHub Actions CI workflow.