Comments (3)
-
It's possible to use the target based approach. See my pull request.
It's quite trivial, I just define some IMPORTED target at the end of the Find module, where I gather all the variables. -
I don't think there's any reason for the embedded world to encourage this.
Actually IMHO the embedded world is quite weird.
Each manufacturer build their custom Eclipse-based IDE, the library they supply is often only accessible through their website, when now days it would be much useful to have those libraries (which are given with the source code) on platforms like GitHub, with another benefit that issue tracking is much easier compared to their ugly forum.
Therefore, I think the problem is more that the embedded world (in many cases) just ignores tools like CMake.
from stm32-cmake.
If you're still interested, please take a look at modern-cmake branch: https://github.com/ObKo/stm32-cmake/tree/modern-cmake
I've implemented support for CMSIS and HAL using imported targets and modern cmake features, such as target_sources and INTERFACE scope.
Looks pretty good for me, but I need more opinions and suggestions.
Will make that master after implementing some missing features.
from stm32-cmake.
Still interested!
Thx you for that. I will look at it!
from stm32-cmake.
Related Issues (20)
- Unable to configure/build Blinky example on windows 10. (No STM32_TARGET_TRIPLET specified) HOT 7
- CMake CMP0057 Policy Error HOT 2
- Check the cmake version and inform the user if it's not at least the requested one
- Support Dual Core Project WL55JCX HOT 11
- Add Branch with only CMAKE functions called `lib ` HOT 5
- FetchContent_Declare does not show progress HOT 5
- Wrong HAL family in find_package HOT 2
- quotes in --sysroot breaks clangd HOT 3
- To the next release and beyond HOT 1
- Multiple warnings from HAL HOT 6
- we need integration of H5 family and C0 family HOT 6
- How to include middleware? HOT 3
- How to include CMSIS arm_math? HOT 8
- Target all HAL libraries for a family HOT 9
- Template on multi-level directories with custom libraries HOT 2
- Calling find_package() to find CMSIS multiple times leads to errors HOT 7
- Incorrect TARGET_TRIPLET variable handling
- Linking fails with `-lstm_cube: no such file or directory` HOT 1
- UT: Make unit test run for all existing and future families HOT 1
- Default linker script interferes with custom linker script HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stm32-cmake.