Add CMake configuration to build without the Arduino IDE#66
Open
chrisa wants to merge 12 commits intoSvenRosvall:mainfrom
Open
Add CMake configuration to build without the Arduino IDE#66chrisa wants to merge 12 commits intoSvenRosvall:mainfrom
chrisa wants to merge 12 commits intoSvenRosvall:mainfrom
Conversation
Collaborator
SvenRosvall
reviewed
Nov 21, 2023
test/testAll.cpp
Outdated
| } | ||
| } | ||
| return 0; | ||
| return failures; |
Owner
There was a problem hiding this comment.
Would be nice to print out a message with the failure count if there are any failures.
4eb0c7c to
432f251
Compare
This allows VLCB sketches to be built entirely with cmake, without the Arduino IDE, but still using the Arduino SDK. Based on https://github.com/tttapa/Arduino-AVR-CMake. Tests are built for the host, and run with ctest.
All examples build, and Bounce2 library added.
This change means that whether building for test or AVR, the targets configured by CMake are appropriate. Now, running make in the AVR build directory will build _all_ of the sketches configured in the top-level CMakeLists.txt.
4f7e2c1 to
2e68c36
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This allows VLCB sketches to be built entirely with cmake, without the Arduino IDE but still using the Arduino SDK.
See
build-all.shfor cmake command lines.