Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: goishin on January 09, 2012, 08:16:47 pm
-
Hey all,
I'm trying to figure out how to create a project file for a large project I'm working on at work. I just want to use Code::Blocks as the IDE. My job has it's own crazy complex build environment, so I don't need to use Code::Blocks to build. I just want to use the IDE (which admittedly is pretty cool) and the code completion. So, I'm thinking I need a project file. But I don't know how to setup a project to include this massive pre-existing code base. The project doesn't use make files. So, I didn't see any way to just point it at a make file, and I didn't even know if I could just point it at a make file and have it figure everything else out anyway. I was wondering if there was a way to setup the project file so I could point it at a root directory and have it scan and add the files on it's own. That way, if I sync with the repo and new files are added, I won't have to keep re-adding them. Is this possible?
- Goishin
-
Just create an empty project and then and your files.
C::B supports building with custom makefiles, but it doesn't support reading the source/header file list from makefiles, sorry.
-
Basically, no. However, you should look at the "Add files recursively.." project context menu, which will at least help you set up the project. But there is nothing (and shouldn't be) that automatically adds things to the project.
-
That did the trick!
For those just tuning in, my problem was I had a large pre-existing project for work that I didn't need compiling support for (I compile using the compiler scripts from the project). I just wanted to use the IDE and code completion.
What I did was create an empty project, and then select "recursively add" from the project right-click menu from the icon in the projects pane to add the specific folders I wanted code completion for. These files now appear in my project, and code completion appears to be working great for it.
Thanks folks!
- Goishin