Skip to content

Add CMake presets.#2984

Merged
hathach merged 3 commits intohathach:masterfrom
HiFiPhile:preset
Feb 14, 2025
Merged

Add CMake presets.#2984
hathach merged 3 commits intohathach:masterfrom
HiFiPhile:preset

Conversation

@HiFiPhile
Copy link
Copy Markdown
Collaborator

Describe the PR
Add CMake presets for easier build.

Now examples can be built in one line, such as cmake --workflow --preset stm32c071nucleo or cmake --build --preset stm32c071nucleo -t audio_4_channel_mic-jlink for flashing.

Additional context
IAR now has a dropdown preset menu for quick board switching.

Signed-off-by: HiFiPhile <admin@hifiphile.com>
Signed-off-by: HiFiPhile <admin@hifiphile.com>
Copy link
Copy Markdown
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is brilliant !! Thank you, this can help to make building with ci easier. Thought the gen_presets.py need to be updated to genertae correct path to presets that in collective examples

Signed-off-by: HiFiPhile <admin@hifiphile.com>
Copy link
Copy Markdown
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look great, thank you

@hathach hathach merged commit 9d2fd6c into hathach:master Feb 14, 2025
@HiFiPhile HiFiPhile deleted the preset branch March 24, 2025 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants