![]() Consider the following layout, for instance: However, if you plan to go beyond this stage, it may be a good idea to consider leveraging the filesystem to your advantage. In a quick academic exercise, a flat single-directory layout may be desirable. Project directory structure is also worth strong consideration. This sort of design is called an out-of-source build, and can make building for multiple targets easier and more flexible for all but the simplest projects. Some people prefer to send the build output to a separate folder, perhaps named "build", or even multiple directories for debug and release builds. However, the generated files mingling with sources can be an annoyance, especially when using version-control systems (CMake does not have a cmake clean command). This might be the root directory of the project or (assuming a heirarchical organization) subdirectories associated with the unit being compiled. An in-source build means that the build output will be placed in the same directory as the project. The first question is largely one of preference.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |