from IDE to (c)make file

CodeLite installation/troubleshooting forum
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

from IDE to (c)make file

Post by petah »

Hi Eran,

I have a CL project I'd like to deploy on github. I want to add cmd-line build instructions (with Make or CMake, either is fine) so it doesn't require CL, while keeping it CL-friendly since it's all I use.

What procedure do you suggest to create and maintain such a project?

I.e. is there a way to "extract" a generic make/cmake file (or part thereof) from CL's project settings? F.ex. is there a way to post-process the "*.mk" file that CL produces, say with a regex parser?

If that doesn't make sense, what is the recommended way to use CL in such a scenario where we want to 3rd parties to be able to build with the cmd-line while (off-handedly ;) ) suggesting they should use CL ?

The dependencies are:

$WXCONF_PATH for wxWidgets
$PORTAUDIO for https://subversion.assembla.com/svn/por ... portaudio/
$RTMIDI for https://github.com/thestk/rtmidi

those are currently defined as CL env vars (either directly or pre-processed in project env vars) and I presume should become something like -DXXX_DEP_VAR1.

My project is a DJ tool "soft-router" that samples audio from CDJs reading CD-Rs with a custom control wave burned onto them, it converts the analog signal, then writes custom MIDI messages (sysex) to a software MIDI interface that a program like Mixxx can read from.

It doesn't require root auth so I'd rather keep the deps flexible too, i.e. not require system-wide install. It's theoretically Windows-friendly but I really only care about Linux.

thx a lot!

-- p
main: Debian Jessie x64 + custom wxTrunk
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: from IDE to (c)make file

Post by eranif »

hi petah,
did you try the cmake plugin? right click on the project and select the cmake menu! you can select to generate a CMakeLists.txt

another option is to use the codelite-make tool which builds a codelite projects from the command line

Eran
Make sure you have read the HOW TO POST thread
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

Re: from IDE to (c)make file

Post by petah »

eranif wrote:did you try the cmake plugin? right click on the project and select the cmake menu! you can select to generate a CMakeLists.txt

another option is to use the codelite-make tool which builds a codelite projects from the command line
Cool, I'll try the cmake plugin 1st. I didn't find a wiki entry for it but I remember it's heavily runtime-documented :)

thx & cheers!

-- p
main: Debian Jessie x64 + custom wxTrunk
Post Reply