Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Support for CodeBlocks in CMake

(1/7) > >>

alex.neundorf:
Hi,

since a few weeks CMake, an open source cross platform buildsystem, has basic support for CodeBlocks projects. CMake is increasingly used by many open source projects, among them KDE4, PlPlot, OpenWengo, ChickenScheme and many others. With CMake you write one cmake script and then it generates for you Makefiles (GNU make, nmake, borland make, cygwin make, mingw), on Windows MSVC project files (from 6.0 to current), on Apple projects for XCode, under Unix projects for KDevelop3 and on all platforms project files for Eclipse.

I added basic support for generating CodeBlocks projects, so if a project uses cmake as its buildsystem, you can immediately start working on it with CodeBlocks without having to manually import a project or something.

Now the issue is, it is just quite basic support, since I don't use CodeBlocks myself (but with support for CodeBlocks I'd consider cmake complete in this regard) it would be nice if somebody who actually uses CB could test the CodeBlocks project generator and ideally make it work reliably.
CodeBlocks support is in CMake cvs (http://www.cmake.org/HTML/Download.html).

You can also reach me via neundorf (AT) kde (DOT) org.

Bye
Alex

Game_Ender:
No guarantee's but I have a Scons based project that I have been wanting to try CMake on.  If I get the chance I will try the Eclipse and Code Blocks generators.

Game_Ender:
Oh and while I have your attention, what is the standard way to get header files to show up in CMake generated projects?

alex.neundorf:
Add the header to the list of sources.
(the kdevelop generator also checks automatically if there is a <dir>/foo.h if a <dir>/foo.cpp is used and adds it if found)

Alex

Biplab:
Hi Alex,

I have few questions.

1. Does the latest release (2.4.7) have this feature? If not, can I get a binary build for testing? (Please note that I've rarely used CMake)
2. Which source file is exporting C::B project? I've downloaded the source from CVS, but I can't find it out.

Thanks,

Biplab

Navigation

[0] Message Index

[#] Next page

Go to full version