zyy37 commented on issue #19697:
URL: https://github.com/apache/nuttx/issues/19697#issuecomment-5231631893

   > [@zyy37](https://github.com/zyy37) please take a look at 
[#19755](https://github.com/apache/nuttx/pull/19755)
   > 
   > This is just an initial fix to prove that "nuttx sim" can work as external 
project. For real boards more modifications will be necessary by CMake experts 
([@simbit18](https://github.com/simbit18))
   
   Very good, thank you very much. Because third-party libraries are usually 
added using `add_subdirectory`, which is also a community style, such as GitHub 
projects like Google Test and UORB. Here is the instruction manual for another 
project. Using `add_subdirectory` is also a category of `out-of-tree building` 
advocated in your document. If not, it's just a bit troublesome for oneself, 
but it can still be used.
   
   <img width="2170" height="802" alt="Image" 
src="https://github.com/user-attachments/assets/a2604f41-b26d-4852-a96b-959f83ed141c";
 />
   
   In addition, the reason why nuttx is placed in the third-party folder is 
also due to considerations for cross platform development of projects such as 
Linux, otherwise the directory tree would be very ugly. In addition, defining 
the path of the board with an explicit path may also be a good choice, while 
reducing ambiguity and your construction judgment.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to