New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: cmake setup #23
refactor: cmake setup #23
Conversation
Refactor cmake and project organization to be more modular and to better conform to best practices.
Corrected tests link errors by reverting GTest back to hunter package instead of submodule. Removed Windows compile flags for /MT
Changed tests to just compare native types instead of converting to strings when not needed.
Fixed PlatformIO builds to work with new folder structure. Removed submodule python script in favor of just ignoring the directory. This will allow desktop and IoT to better co-exist in the same source tree. Remove [common] section of test/platformio.ini as it did not seem to actually be respected.
build failures are due to test failures dealing with timestamp. This is corrected in #22. |
Added missing adapter macro to GTest adapter. Will submit PR to AUnit library for proper fix.
macOS builds are not running (and failing the check) due to some sort of CircleCI admin issue. Not a problem with the PR. I do not know what the expect results from CircleCI are. This appears to be running just CI on my branch and not on the PR. If this is the case then macOS builds will always fail for my PRs since I do not have a paid macOS plan. |
Can confirm this passes tests on macOS. CI issue is also discussed here: Cpp-Crypto #27. |
Proposed changes
Refactored cmake to make the project easier to include in end-user applications. Updated PlatformIO as needed. Attempted to follow best practices for cmake and C++.
Types of changes
Checklist
Further comments
This change will support the creation of a "HelloArk" getting started project and allow cpp-client to be cmake "add_subdirectory" friendly to allow anyone to include it in their project.