cmake composer?

Kevin Funk kfunk at
Fri Oct 4 10:01:09 BST 2019

On Friday, 4 October 2019 10:02:04 CEST René J.V. Bertin wrote:
> Hi,
> Quick question, KDevelop doesn't have any helpful functions to assist with
> the tediousness of hand-writing CMake files, does it?

It does:

There's basic completion helpers provided by KTextEditor (basically allowing 
you to autocomplete CMake commands)

There's advanced completion helpers provided by KDevelop which "understands" 
CMake to some extend, cf. attached screenshot

> Does KDE have any tools that can at least create a minimal skeleton CMake
> file?

Personally I usually start by copying a CMakeLists.txt file from a project 
having the same goal (e.g. standalone Qt app, standalone KDE app, Qt library, 
Qt plugin, ....).

If that does not help, KDevelop also has some CMake-based application 
templates which come with a pre-filled CMakeLists.txt, see e.g.:

If you're looking for a basic Qt-only CMake template, go for Qt's CMake 

Then there's also a more generic but useful collection of CMake examples:

There's no "one-fits-all" CMakeLists.txt obviously.


> Thanks,
> R.

Kevin Funk | kfunk at |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevelop-cmake-completion.png
Type: image/png
Size: 28320 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the KDevelop mailing list