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.
CodeLite hides directory structure
-
- CodeLite Curious
- Posts: 5
- Joined: Fri Sep 25, 2015 10:49 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeLite hides directory structure
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
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
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Fri Sep 25, 2015 10:49 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeLite hides directory structure
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".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
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.
-
- CodeLite Curious
- Posts: 5
- Joined: Fri Sep 25, 2015 10:49 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeLite hides directory structure
My idea worked just fine, but i still have one doubt... Where can i select if it is a "release" or "debug" building?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeLite hides directory structure
Because it does not import cmake file (CMakeLists.txt) or Makefile.. it import source files from the file systemConflux wrote:Ok, this tutorial is weird, it doesn't point me on how to import a make or cmake file
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'
Did you run cmake to generate Makefiles?Conflux wrote:"No target pointed and no make found".
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Fri Sep 25, 2015 10:49 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeLite hides directory structure
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?eranif wrote:Did you run cmake to generate Makefiles?Conflux wrote:"No target pointed and no make found".
Sorry for disrupting the thread subject.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeLite hides directory structure
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
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
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Fri Sep 25, 2015 10:49 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeLite hides directory structure
Thanks, didn't saw it because cmake imported just one config, with a weird name, but yeah, not a problem for this forum... =)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
You can close the thread if you want to.