{"id":345,"date":"2019-03-17T10:46:56","date_gmt":"2019-03-17T17:46:56","guid":{"rendered":"http:\/\/35.243.195.209\/?p=345"},"modified":"2019-03-17T10:46:57","modified_gmt":"2019-03-17T17:46:57","slug":"a-generic-project-structure-in-c","status":"publish","type":"post","link":"https:\/\/nanzhou.cc\/index.php\/2019\/03\/17\/a-generic-project-structure-in-c\/","title":{"rendered":"A Generic Project Structure in C++"},"content":{"rendered":"<h2>Summary<\/h2>\n<p>In this post, I will introduce a generic structure for C++ projects.<\/p>\n<h2>Details<\/h2>\n<p>A clean structure is the basis of a clean project. I simplify the full version and present a simpler but useful structure here.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/35.243.195.209\/wp-content\/uploads\/2019\/03\/Screenshot-from-2019-03-17-10-42-55.png\" alt=\"\" width=\"572\" height=\"318\" class=\"alignnone size-full wp-image-347\" srcset=\"https:\/\/nanzhou.cc\/wp-content\/uploads\/2019\/03\/Screenshot-from-2019-03-17-10-42-55.png 572w, https:\/\/nanzhou.cc\/wp-content\/uploads\/2019\/03\/Screenshot-from-2019-03-17-10-42-55-300x167.png 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><br \/>\n1. bin: The output executables.<br \/>\n2. build: This folder contains all object files.<br \/>\n3. docs: Any notes, like Doxygen<br \/>\n4. include: All project header files not under <code>\/usr\/local\/include<\/code>.<br \/>\n5. lib: Third party libs.<br \/>\n6. src: The application and only the application\u2019s source files.<br \/>\n7. test: All test code files.<\/p>\n<h2>Reference<\/h2>\n<p><a href=\"https:\/\/hiltmon.com\/blog\/2013\/07\/03\/a-simple-c-plus-plus-project-structure\/\">Hiltmon&#8217;s Blog<\/a><br \/>\n<a href=\"https:\/\/code.google.com\/archive\/p\/cpp-project-template\/\">Cpp-project-template<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary In this post, I will introduce a generic structure for C++ projects. Details A clean structure is the basis of a clean project. I simplify the full version and present a simpler but useful structure here. 1. bin: The output executables. 2. build: This folder contains all object files. 3. docs: Any notes, like&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,5,25],"tags":[],"class_list":["post-345","post","type-post","status-publish","format-standard","hentry","category-c","category-proglang","category-software-engineering"],"_links":{"self":[{"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/posts\/345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/comments?post=345"}],"version-history":[{"count":1,"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":348,"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/posts\/345\/revisions\/348"}],"wp:attachment":[{"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nanzhou.cc\/index.php\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}