Author Topic: Migrating from Atom  (Read 3343 times)

Offline newtocpp

  • Single posting newcomer
  • *
  • Posts: 5
Migrating from Atom
« 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
« Last Edit: February 22, 2019, 03:44:49 am by newtocpp »

Offline Quiss

  • Multiple posting newcomer
  • *
  • Posts: 76
Re: Migrating from Atom
« Reply #1 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Migrating from Atom
« Reply #2 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' ."?
(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 newtocpp

  • Single posting newcomer
  • *
  • Posts: 5
Re: Migrating from Atom
« Reply #3 on: February 22, 2019, 01:11:31 pm »
Does this allow me to import the whole project into codeblocks?

Offline newtocpp

  • Single posting newcomer
  • *
  • Posts: 5
Re: Migrating from Atom
« Reply #4 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 :)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Migrating from Atom
« Reply #5 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.
(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!]