Programming
-
[C++] 정규 프로젝트 구조(Canonical Project Structure)프로그래밍/c++ 2020. 8. 28. 12:57
OpenStd, Canonical Project Structure를 참고 함 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1204r0.html 헤더와 CPP는 같은 디렉토리에 헤더와 소스는 옆에 있음 Header and source files (or module interface and implementation files) are next to each other (no include/ and src/ split). 의외라고 생각한 부분. 헤더는 include/ 소스는 src/ 로 나누는 방식을 권할 줄 알았음. 프로젝트의 소스 코드는 프로젝트와 동일한 이름의 디렉토리 아래에 배치 name/ ├─ name/ │ ├─ foo.hpp │ ├─ foo..