C + + Engineering catalog schema

Source: Internet
Author: User

The problem of the structure of the project directory is basically a benevolent see problem, as long as their own use, what kind of directory organization structure is nothing serious. Of course, if the project is large, the number of people involved, then a reasonable organization of the directory structure will be a great benefit. Different types of projects also have different directory structures, and here is a simple demonstration of the basic directory structure of the C + + project I am using.

Project--+---Build---+---debug
| |---release
|---Dist
|---doc
|---include---+---module1
| |---module2
|---lib
|---Module1
|---module2
|---Res
|---samples---+---sample1
| |---sample2
|---Tools
|---copyleft
|---Makefile
|---README
|--- ...

The following sections describe the purpose of each directory and file

build/: Project compilation directory, all kinds of compiled temporary files and final target files are stored here, divided into debug/and release/sub-directories

dist/: distribution directory, the final release of executable programs and various running support files in this directory, packaging this directory to complete project distribution

doc/: Saving a project's various documents

include/: Common header file directory, can be divided into the organization directory to save module related header files

lib/: external Dependent Library directory

res/: Resource Directory

samples/: Sample program Directory

tools/: Project support Tool catalogue

copyleft: copyright Notice file, of course, can also be called copyright:-)

Makefile: The project build configuration file, of course, may also be other types of build configuration files, such as Bjam

README: General documentation of the project

C + + Engineering catalog schema

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.