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!
Projects and cmake
-
- CodeLite Curious
- Posts: 2
- Joined: Thu Nov 22, 2012 2:26 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: Projects and cmake
Open your project settings and navigate to the "Customize" page as seen in the screenshot below (I also included some instructions on the image):
custom targets by right clicking on the project and selecting 'custom targets' as shown below
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
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
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
-
- CodeLite Curious
- Posts: 2
- Joined: Thu Nov 22, 2012 2:26 am
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: Projects and cmake
Cool, it works!
Thank you for the quick help
Thank you for the quick help