Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: havarti on November 14, 2013, 12:50:35 pm

Title: Compiling pre-existing project with CodeBlocks
Post by: havarti on November 14, 2013, 12:50:35 pm
Hi

I have a bunch of C++ files and associated headers, and I wanted to work with them in CodeBlocks. A CMakeLists-file comes with the project. Am I supposed to add this to CodeBlocks before I can build it?

Thanks in advance.
Title: Re: Compiling pre-existing project with CodeBlocks
Post by: oBFusCATed on November 14, 2013, 01:14:44 pm
You have two options:
1. use your makefile in a custom make file project (search the forum for details)
2. redo your project in the C::B's built-in build system

Both have pros and cons...
Title: Re: Compiling pre-existing project with CodeBlocks
Post by: ouch on November 17, 2013, 07:52:42 am
I would like to add that if it is your project and have control over it use 2. If it's not your project and your just compiling something from say SVN then definitely go with 1.