Skip to content

Conversation

@ventZl
Copy link

@ventZl ventZl commented Jan 5, 2026

CMakeLists.txt is added trying to resemble the behavior of Makefile as close as possible, where it makes sense. mkcerts.sh updated to support customization of output directory in order to support separate source and binary directories.

CMakeLists supports compiling static and shared WolfIP library and generates various test binaries.

If -DBUILD_TESTING=ON is passed to CMake, then tests are build automatically and test target is available to run tests. Otherwise test binary targets are generated but are not built by default.

If wolfssl is NOT found in the system, then tests relying on its presence are disabled completely.

Same applies for xxd and openssl which are required for certificate generation step.

CMakeLists will try to detect check library used by the unit test suite. If not found then unit tests driver build is disabled.

If -DBUILD_TESTING=ON is passed to CMake, then any of above missing will cause the build to fail as it is not possible to build all tests.

Install step is provided that installs shared library.

So far only native Linux build is tested.

ASAN support is not implemented yet.

CMakeLists.txt is added trying to resemble the behavior of Makefile as
close as possible, where it makes sense. mkcerts.sh updated to support
customization of output directory in order to support separate source
and binary directories.

CMakeLists supports compiling static and shared WolfIP library and
generates various test binaries.

If -DBUILD_TESTING=ON is passed to CMake, then tests are build
automatically and `test` target is available to run tests. Otherwise
test binary targets are generated but are not built by default.

If wolfssl is NOT found in the system, then tests relying on its
presence are disabled completely.

Same applies for xxd and openssl which are required for certificate
generation step.

CMakeLists will try to detect check library used by the unit test
suite. If not found then unit tests driver build is disabled.

If -DBUILD_TESTING is passed to CMake, then any of above missing will
cause the build to fail as it is not possible to build all tests.

Install step is provided that installs shared library.

So far only native Linux build is tested.

ASAN support is not implemented yet.
@danielinux danielinux self-assigned this Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants