I have a Makefile for a large project that builds with make and mingw, but I would like to build it with Code::Blocks, so I need to create a C::B project.
I built the project in MinGW console and did a make -k to see everything that went on. Then I grepped every gcc and g++ line to get a list of all files that were being built, and what -I directives they were using.
The project consists of a number of "sub-projects" that have their own include directories supplied to make with -I.
How can I do the same in C::B? That is, set up sub-projects, without only linking to pre-generated .o files, because I want to be able to debug all the sources with stepping.
So far I tried adding all the .c and .cpp files to the .cbp file, and adding all the include directories (<Add directory=...) under the <Compiler> tag.
I can get the project to start building, but I immediately run into errors which I believe are caused by including all the directories at once on the project level, instead of individually per "sub-project". The project probably also needs different compiler directives per "sub-project".