简体   繁体   中英

Optimized Project Structure in Eclipse CDT

I'm in a c++ project on linux in the starting stages. (team contains 3-5 developer, IDE is Eclipse CDT 6) And i'm wondering your ideas about what should be the project structure about the following subjects:

  • Dependency management, how would you reference different sub-project directories in the same project
  • Building system, handwrite makefile or Eclipse automake? (Eclipse generates makefiles for per project. and i want a general makefile for all the subprojects)
  • For A Test framework, would i prefer precompiled library or holding the source of framework on the project, then building with the overall building process?

Sample sub-projects

  • /Project.Model.A
  • /Project.Model.B
  • /Project.Model.A.Tests
  • /Project.Model.B.Tests
  • /Project.Views etc...

And i'm looking for an open source project similar to this structure...

best regards

For a great look of huge C++ project with tons of nested autogenerated Makefiles, I suggest you to check QT 4 sources. It's amazing how them reached a very solid and reliable structure with that number of subprojects and dependencies. It's true, anyway, that they use QMake (own tool) for handling .pro (project definitions) and .pri (project include) files.

Recently I worked with CMake build system and I have to say that's very handly, driving you to split sources from binaries by design and with overall good tools for configuring your compiler's options. I know that should be compatible with Eclipse, check here for details. It will enable also graphic configure and make tool within Eclipse framework.

Poco框架合适

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM