-
Notifications
You must be signed in to change notification settings - Fork 66
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
Adding a CMakeLists.txt #10
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I have a
CMakeLists.txt
version of theMakefile
andMakefile.common
and I think it'd be a good idea to add it, some of my reasons are:Makefiles
work well enough with IDEs but not alwaysCMakeLists.txt
does make life easier for debugging and suggestions/completionsCMakeLists.txt
that can be used as a template is in line with what is taught/learned through theDiscovering STM32
bookNow, some details regarding the CMakeLists.txt file I have been using:
Makefile
and theMakefile.common
, I am open to changing it from 1 file to 2 files that are closer to the currentMakefile
layout if it's truly wanted/needed14
to16
which just link the library directly, instead I would add theLIBROOT
so it matches theMakefile.common
TOOLROOT
as well since my compiler is available in the search path and installed system-wide but that is not the case for everyoneMakefile
andMakefile.common
did and modifying or adding things as I needed them29
to35
we have to manually add the files, I would add variables so we shorten this${PERIPH_SRC}/stm32f10x_gpio.c
Excited to hear what you think about this idea!
The text was updated successfully, but these errors were encountered: