franneck94 / Vscode-C-Cpp-Runner

🚀 Compile, run and debug single or multiple C/C++ files with ease. 🚀
MIT License
53 stars 14 forks source link

Include subdirectories for sourcecode. #70

Closed ccerdadiaz closed 2 years ago

ccerdadiaz commented 2 years ago

Example. With the structure below include the lib directory (list of src subdirectories in settings.json?) in compilation / link

D:.
|   list.cc
|   list.h
|   README.md
|   stack.cc
|   stack.h
|
+---.vscode
|       c_cpp_properties.json
|       launch.json
|       settings.json
|
+---build
|   \---Debug
|           list.o
|           stack.o
|           stackmain.o
|
\---lib
        error.cc
        error.h
franneck94 commented 2 years ago

This is definitly more a use case for a cmake project and not for this extension tbh.