Page 1 of 1

CodeLite hides directory structure

Posted: Fri Sep 25, 2015 10:53 am
by Conflux
Hi, i imported a project to CodeLite using cmake, this project is organized in multiple folders, CodeLite recognizes it, the project compiles just fine, but the Workspace view don't show them, it just gathers everything in "include" and "source", i want the directory structure to be shown, is that possible? This project becomes very confusing to edit without it.

Thanks in advance.

Re: CodeLite hides directory structure

Posted: Fri Sep 25, 2015 2:07 pm
by eranif
This is because how the CMake generator created the projects.
So its not really CodeLite fault (although technically its a CMake issue, you can complain about it here since I was the one who contributed the CMake generator ;))

A workaround (one which I am using myself when building CodeLite on Linux):
http://codelite.org/LiteEditor/WorkingWithCMake

Eran

Re: CodeLite hides directory structure

Posted: Fri Sep 25, 2015 9:23 pm
by Conflux
eranif wrote:This is because how the CMake generator created the projects.
So its not really CodeLite fault (although technically its a CMake issue, you can complain about it here since I was the one who contributed the CMake generator ;))

A workaround (one which I am using myself when building CodeLite on Linux):
http://codelite.org/LiteEditor/WorkingWithCMake

Eran
Ok, this tutorial is weird, it doesn't point me on how to import a make or cmake file, so i presumed that i would need to run cmake to generate a makefile and put it on the sources folder, where the workspace and project are, but CodeLite doesn't recognize it, when i build it outputs "No target pointed and no make found".

But now that I tried it, I had an idea, I'll just use cmake to generate a CodeLite project, just as before, and then, delete all the sources on the project and import them again.

Re: CodeLite hides directory structure

Posted: Fri Sep 25, 2015 9:50 pm
by Conflux
My idea worked just fine, but i still have one doubt... Where can i select if it is a "release" or "debug" building?

Re: CodeLite hides directory structure

Posted: Fri Sep 25, 2015 9:52 pm
by eranif
Conflux wrote:Ok, this tutorial is weird, it doesn't point me on how to import a make or cmake file
Because it does not import cmake file (CMakeLists.txt) or Makefile.. it import source files from the file system

All you need:
* Checkout your source files into a folder
* Follow the steps in the tutorial (place the workspace and project files in the folder where you just checkedout your sources)

Its really simply:
* Import files
* Tell CodeLite to run 'make'
Conflux wrote:"No target pointed and no make found".
Did you run cmake to generate Makefiles?

Eran

Re: CodeLite hides directory structure

Posted: Sat Sep 26, 2015 12:18 am
by Conflux
eranif wrote:
Conflux wrote:"No target pointed and no make found".
Did you run cmake to generate Makefiles?
Of course, but I don't feel like this workaround is necessary anymore, my workaround worked just fine... However, can you answer my other question? How can i select Debug and Release targets?

Sorry for disrupting the thread subject.

Re: CodeLite hides directory structure

Posted: Sat Sep 26, 2015 12:25 am
by eranif
In the "Workspace" tab there is a drop-down menu with "Debug" / "Release"
You switch from there.

Also, note that the project settings are different for "Debug" and "Release" so you might want to check that build commands are properly set for "Debug"/"Release"

Eran

Re: CodeLite hides directory structure

Posted: Sat Sep 26, 2015 12:33 am
by Conflux
eranif wrote:In the "Workspace" tab there is a drop-down menu with "Debug" / "Release"
You switch from there.

Also, note that the project settings are different for "Debug" and "Release" so you might want to check that build commands are properly set for "Debug"/"Release"

Eran
Thanks, didn't saw it because cmake imported just one config, with a weird name, but yeah, not a problem for this forum... =)

You can close the thread if you want to.