← Guidelines and HOWTOs/CMake You do not have permission to edit this page, for the following reason: The action you have requested is limited to users in one of the groups: Users, Administrators, trusted, KDEDevelopers. You can view and copy the source of this page. Most KDE software uses [http://www.cmake.org CMake] as a buildsystem. This page is the starting point for CMake-related documentation for KDE software. You should be aware that there are two main development platforms that KDE software is based on: the older kdelibs4, and its replacement, the [http://api.kde.org/frameworks-api/frameworks5-apidocs/ KDE Frameworks]. Quite a bit of KDE software is in the process of transitioning from kdelibs4 to KDE Frameworks, and the way CMake is used is slightly different between the two. This page contains some tutorials to help you get started on building a CMake-based buildsystem. This is the recommended way of building your software if you use KDE technologies, such as KDE Frameworks. Reference documentation for using CMake with KDE software can be found at [[Development/CMake]]. ==Beginners== * [[/FirstProject|A first CMake project]]: if you've never even looked at CMake code before, start here. * [[/Frameworks|Using a framework]]: introduces you to using a KDE Framework - finding the package and linking your program against it. ==Intermediate== * [[/Library|Creating a library]]: demonstrates best practices when creating a library with a CMake-based buildsystem (such as a KDE Framework). == Building with CMake in short == If you just want to build a CMake-based project on a UNIX system, the following recipe will do that: cd /path/to/project/source mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/where/to/install/to .. make make install Don't forget to replace both paths. If you want an explanation of what this command does and how to make CMake behave differently, or you want to build on Windows or OS/X, see [[Guidelines HOWTOs/CMake/Building]]. ==Useful resources== You may want to check out the [http://www.cmake.org/Wiki/CMake CMake wiki], although beware that it contains quite a bit of out-of-date information. ===Reference documentation=== * [http://www.cmake.org/HTML/Documentation.html CMake's own documentation] * [http://api.kde.org/ecm Extra CMake Modules documentation] ===Upgrading from KDELibs4=== See https://techbase.kde.org/ECM5/IncompatibleChangesKDELibs4ToECM. ===FAQs=== * [[Guidelines HOWTOs/CMake/FAQs|KDE's CMake FAQs]] * [http://www.cmake.org/Wiki/CMake_FAQ CMake FAQ on the CMake wiki] ===Mailing lists=== ;[http://mail.kde.org/pipermail/kde-buildsystem/ The kde-buildsystem mailing list] :Discussion of CMake in the KDE community, as well as development of Extra CMake Modules. ;[http://www.cmake.org/mailman/listinfo/cmake CMake mailing list] :For users of CMake. ;[http://www.cmake.org/mailman/listinfo/cmake-developers CMake mailing list] :For anyone wanting to contribute to CMake. Return to Guidelines and HOWTOs/CMake. Retrieved from "https://community.kde.org/Guidelines_and_HOWTOs/CMake"