Closed 791314247 closed 1 year ago
Your Mandarin is too advanced for me! :-) After applying machine translation...
Thanks for your suggestion.
This tutorial serves as a very basic-level guide to using CMake together with the IAR C/C++ compilers to cross-compile embedded software applications for the supported target architectures.
The "hello-world" was added exactly for the opposite reason you are now suggesting. Earlier, the provided examples were not so clear about what a "minimal" project would be.
In the end, it is an open-ended tutorial, and our aim is not to go too deep into all options CMake offers. That would be for the CMake's official documentation/books/forum. If you are already aware of GLOB
possibilities and want use that on your own projects, please be aware of the consequences. file(GLOB...
blindly adds sources to a target and the CMake developers themselves advocate against its use as it will, in the best case, hide dependencies if not worse. It is explained in the documentation's first note.
Please also consider Effective Modern CMake, a collection of hints and best practices for your projects.
ok, thk
目前hello-world的cmake太简单了,能否提供更复杂的例子,比如自动搜索源文件构建工程等