cmake composer?
Kevin Funk
kfunk at kde.org
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.:
https://www.youtube.com/watch?v=47xdLegd3z4
If you're looking for a basic Qt-only CMake template, go for Qt's CMake
manual:
https://doc.qt.io/archives/qt-5.11//cmake-manual.html
Then there's also a more generic but useful collection of CMake examples:
https://github.com/onqtam/awesome-cmake#examples--templates
There's no "one-fits-all" CMakeLists.txt obviously.
Regards,
Kevin
> Thanks,
> R.
--
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevelop-cmake-completion.png
Type: image/png
Size: 28320 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20191004/2034acb4/attachment.png>
-------------- 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: <http://mail.kde.org/pipermail/kdevelop/attachments/20191004/2034acb4/attachment.sig>
More information about the KDevelop
mailing list