Author Topic: Compiling pre-existing project with CodeBlocks  (Read 2907 times)

Offline havarti

  • Single posting newcomer
  • *
  • Posts: 9
Compiling pre-existing project with CodeBlocks
« 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Compiling pre-existing project with CodeBlocks
« Reply #1 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...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: Compiling pre-existing project with CodeBlocks
« Reply #2 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.