Code::Blocks Forums

User forums => Help => Topic started by: newtocpp on February 22, 2019, 03:40:19 am

Title: Migrating from Atom
Post by: newtocpp on February 22, 2019, 03:40:19 am
Hello, I want to start using codeblocks instead of Atom and cmake which I have been using from before.
I have encountered a "problem" (might be just me that is the problem :o)



What I wish to do:
I wish to import my whole (already working) project and directories into codeblocks

What I have done so far:
1) I have created a blank project
2) I copied my directories and files into the new project folder
3) Inside codeblock I selected "Project > Add files" and selected the files I wished to import (from the project folder mentioned in "2)" )

What my problem is:
I cant seem to find either the correct file or directory while trying to compile ???
Have also tried "#include "src/fauxmead.h", "#include "fauxmead.h"" and just to be on the safest side #include "Headers/src/fauxmead.h"

Screenshot: https://i.imgur.com/qysjbYV.png



I hope someone kicks my brain back on track.
Thanks for any contribution ;D
Title: Re: Migrating from Atom
Post by: Quiss on February 22, 2019, 07:08:08 am
Right click project (flush) and select "Build options". Then add the relevant directiories under "Search directories" tab.
Title: Re: Migrating from Atom
Post by: oBFusCATed on February 22, 2019, 08:37:14 am
If you have a cmake build system why don't you just do "cmake -G 'CodeBlocks - Ninja' ."?
Title: Re: Migrating from Atom
Post by: newtocpp on February 22, 2019, 01:11:31 pm
Does this allow me to import the whole project into codeblocks?
Title: Re: Migrating from Atom
Post by: newtocpp on February 22, 2019, 01:12:29 pm
Right click project (flush) and select "Build options". Then add the relevant directiories under "Search directories" tab.

Thanks alot :)
Title: Re: Migrating from Atom
Post by: oBFusCATed on February 22, 2019, 07:05:13 pm
Does this allow me to import the whole project into codeblocks?
Yes and you'll be building with ninja/make and you won't have to replicate the cmake build system in c::b.