To use picolibrary-arm-cortex-m0plus as a dependency, simply add the subdirectory
containing the repository to a CMake build, and link with the
picolibrary-arm-cortex-m0plus
static library.
add_subdirectory( picolibrary-arm-cortex-m0plus )
target_link_libraries(
foo
picolibrary-arm-cortex-m0plus
)
The picolibrary-arm-cortex-m0plus
static library does not include
::picolibrary::Arm::Cortex::M0PLUS::version()
.
To use ::picolibrary::Arm::Cortex::M0PLUS::version()
, link with the
picolibrary-arm-cortex-m0plus-version
static library.
target_link_libraries(
foo
picolibrary-arm-cortex-m0plus
picolibrary-arm-cortex-m0plus-version
)
picolibrary-arm-cortex-m0plus supports the following project configuration options:
PICOLIBRARY_ARM_CORTEX_M0PLUS_USE_PARENT_PROJECT_PICOLIBRARY
(defaults to ON
): use
parent project’s picolibraryPICOLIBRARY_ARM_CORTEX_M0PLUS_IMPLEMENTATION_INCLUDE_DIR
: implementation include
directoryIf PICOLIBRARY_ARM_CORTEX_M0PLUS_USE_PARENT_PROJECT_PICOLIBRARY
is ON
, picolibrary
must be configured as follows:
PICOLIBRARY_HIL_INCLUDE_DIR
must be set to the path to picolibrary-arm-cortex-m0plus’s
include/
directoryPICOLIBRARY_ENABLE_AUTOMATED_TESTING
must be OFF
The repository’s Git pre-commit
hook script is the simplest way to configure, and build
picolibrary-arm-cortex-m0plus 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.