Projects and cmake

General questions regarding the usage of CodeLite
dawit
CodeLite Curious
Posts: 2
Joined: Thu Nov 22, 2012 2:26 am
Genuine User: Yes
IDE Question: c++
Contact:

Projects and cmake

Post by dawit » Thu Nov 22, 2012 2:37 am

Hello,
I'm trying to use CodeLite together with cmake and ran into a little problem: I created a new workspace and added a project in a sub directory. So, now when I'm trying to run cmake as a pre-build step cmake is called from the workspace directory and not from the project directory which means that the makefile is also created inside the workspace folder.
Is there a way to tell CodeLite from where to call cmake?

Thanks!

User avatar
eranif
CodeLite Plugin
Posts: 6081
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Projects and cmake

Post by eranif » Thu Nov 22, 2012 11:33 am

Open your project settings and navigate to the "Customize" page as seen in the screenshot below (I also included some instructions on the image):
1.png
Once you have all your targets added (consider 'cmake' as a target), you can execute your
custom targets by right clicking on the project and selecting 'custom targets' as shown below
2.png
Note that the default Build| Rebuild | Clean | Compile Single File | Preprocess File targets are not considered as a "custom" and will be not be shown in the "Custom Build Targets" sub-menu

To run the default "Build" command (usually 'make') just hit F7

HTH,
Eran
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread

dawit
CodeLite Curious
Posts: 2
Joined: Thu Nov 22, 2012 2:26 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Projects and cmake

Post by dawit » Thu Nov 22, 2012 1:26 pm

Cool, it works!
Thank you for the quick help

Post Reply