User forums > General (but related to Code::Blocks)
.cbp to CMake?
cacb:
Hi,
I am looking into the possibility of writing an INDI device driver for my slightly non-standard telescope. I know Code::Blocks quite well, and prefer it for all my work, but I see that INDI is using the CMake build system, of which I am not so familiar.
Does anything like a .cbp => CMake export plugin (or separate utility) exist? I have seen the opposite mentioned, but I'd like it the other way around, if possible ;D
oBFusCATed:
Probably it will be possible, but I'm sure that you'll learn cmake faster than making a plugin for codeblocks.
cacb:
--- Quote from: oBFusCATed on September 21, 2014, 09:01:46 pm ---Probably it will be possible, but I'm sure that you'll learn cmake faster than making a plugin for codeblocks.
--- End quote ---
If those are the alternatives, yes probably. But I was hoping that this wasn't a brand new idea ;) I find it awkward not to be able to edit/build/run/debug from an IDE during development (and you want code completion, for example). For final distribution something like cmake makes a lot more sense, obviously. To edit/build/debug a project within C::B and then at any time export it as a cmake project for separate build/distribution sounds to me like an attractive idea if anyone wants to try.
I noticed cbp2make exists. A similar idea.
pirx67:
Hi,
as far as I know CMake is a so called "MakeMake" tool. Itself doesn't guide the build process but only provides a means to describe how to build a certain software independent from
the target OS and the target build system. So you have then the choice to use the "make" / build control tools that you have on your build platform.
For instance you could tell CMake to create GNU Makefiles to build the software. You only need CMake to create the Makefiles. The build of the software will be guided by the GNU Makefiles then.
So you could for instance configure a Code::Blocks project to use these external Makefiles.
But even better you could advise CMake to create Code::Blocks project files (*.cbp) (see http://www.cmake.org/Wiki/CMake_Generator_Specific_Information). How good that works?
I don't know. But as you can see building a plugin as you proposed would counterfeit the idea of CMake.
My 2 cents here,
pirx67
Alpha:
You might find Project Exporter Plugin to be useful. I have not touched it for a while, so it may require some tweaks to build with current versions of C::B. However, it does (did) implement most common functionality, so it should work for simple and medium complicated build setups.
Navigation
[0] Message Index
[#] Next page
Go to full version