Page 1 of 1

Projects and cmake

Posted: Thu Nov 22, 2012 2:37 am
by dawit
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!

Re: Projects and cmake

Posted: Thu Nov 22, 2012 11:33 am
by eranif
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

Re: Projects and cmake

Posted: Thu Nov 22, 2012 1:26 pm
by dawit
Cool, it works!
Thank you for the quick help