Add support for CMake #11
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
testtarget 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.