Skip to content
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

Usage from a regular CMake project #33

Open
glebm opened this issue Oct 6, 2024 · 3 comments
Open

Usage from a regular CMake project #33

glebm opened this issue Oct 6, 2024 · 3 comments

Comments

@glebm
Copy link

glebm commented Oct 6, 2024

I'd like to use this from a regular CMake project, without platformio/arduino IDE/etc, e.g. by adding this as a dependency via FetchContent. Is there an example of doing so somewhere?

@jp-bennett
Copy link
Collaborator

Hey, sorry about the delay. I don't have a problem with adding the cmake file, but I'm very curious about this use case. Where does portduino make sense outside of platformio?

@glebm
Copy link
Author

glebm commented Nov 9, 2024

platformio is not a requirement to compile an Arduino project

You can have a regular CMake project, with portduino providing the desktop implementations, allowing you to develop and run on desktop with a standard stack rather than platformio

@glebm
Copy link
Author

glebm commented Nov 9, 2024

A bit of a side comment: to me platformio makes no sense whatsoever. CMake already has all the necessary stuff to cross-compile onto any kind of device. It's rather disappointing to me from the ecosystem perspective that platformio went with their custom thing rather than simply providing CMake toolchain configurations.

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

No branches or pull requests

2 participants