-
Notifications
You must be signed in to change notification settings - Fork 178
CMake: Add documentation about CMakeLists.txt file #1434
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
Conversation
28c9170
to
1eee139
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once fixed
|
||
## Library configuration | ||
Source files are included in libraries by listing them in `CMakeLists.txt` files using `target_sources()`. Some source code are provided in Mbed as pre-built libraries and are added to libraries using `target_link_libraries()`. `target_link_libraries()` is also used to link other Mbed libraries if there are dependencies. | ||
Header files are included by listing the directories where they are found using `target_include_directories()`. Additionally, compile defintions are added to libraries using `target_compile_defintions()`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Header files are included by listing the directories where they are found using `target_include_directories()`. Additionally, compile defintions are added to libraries using `target_compile_defintions()`. | |
compile defintions are added to libraries using `target_compile_definitions()`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand the suggestion. Are you suggesting to remove talking about target_include_directories()
? If so, why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defintions
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The suggestion was incorrect 🤦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Add documentation to explain how CMakeLists.txt file are used in Mbed OS.
1eee139
to
0cd3f1d
Compare
Add documentation to explain how CMakeLists.txt file
are used in Mbed OS.