Skip to main content
fsch
Associate II
October 10, 2019
Question

Is it planned to generate CMake project?

  • October 10, 2019
  • 6 replies
  • 1703 views

Hi,

are there plans on offering a generator for plain CMake projects?

Currently the only way that works is to use CLion to convert the project to CMake but it would be nice if CubeMX supported CMake directly.

This topic has been closed for replies.

6 replies

Khouloud ZEMMELI
ST Employee
October 11, 2019

​Hello @fsch​ ,

There's no plan for CubeMX to support CMake . But I will share your request with the team to be internally analysed.

Best Regards,

Khouloud.

yakleg
Visitor II
January 11, 2020

+1

It will be extremely useful.

Uwe Bonnes
Chief
January 11, 2020

+1

FS.1
Associate III
September 3, 2020
yakleg
Visitor II
September 3, 2020

Thx.

Voted.

elMachete
Visitor II
January 24, 2023

I wrote a simple CMake script to automatically generate libraries from CubeMX projects:

https://github.com/jmacheta/cubemx-cmake

It uses CubeMX CLI functionality to generate Makefile project, then parses Makefile to get relevant information(i.e. sources, include directories, defines and linker script) to create CMake OBJECT library.

Based on that, it should be easy to generate CMake package. Let me know if anyone needs such functionality,:)