diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-06 21:03:43 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-06 22:36:02 +0200 |
commit | f3de2dbaf657f9040a4da448c57267de0fef7d33 (patch) | |
tree | d3b44456dd66f619f29671d56589f0257e986d7a /README.cmake | |
parent | cc1b834fe966d40206d148e1f27f0502463ac69f (diff) |
CMake: Add basic CMake build system
Introduce an initial CMake buildsystem. This build system can build
a fully working apt system without translation or documentation.
The FindBerkelyDB module is from kdelibs, with some small adjustements
to also look in db5 directories.
Initial work on this CMake build system started in 2009, and was
resumed in August 2016.
Diffstat (limited to 'README.cmake')
-rw-r--r-- | README.cmake | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/README.cmake b/README.cmake new file mode 100644 index 000000000..c9347a057 --- /dev/null +++ b/README.cmake @@ -0,0 +1,36 @@ +The Make System +================ + +To compile this program using cmake you require cmake 3.3 or newer. + +Building +-------- +The recommended way is to generate a build directory and build in it, e.g. + + mkdir build + cd build + cmake .. OR cmake -G Ninja .. + make -j4 OR ninja + +You can use either the make or the ninja generator; the ninja stuff is faster, +though. You can also build in-tree: + + cmake -G Ninja + ninja + +To build a subdirectory; for example, apt-pkg, use one of: + + ninja apt-pkg/all + make -C apt-pkg -j4 (or cd apt-pkg && make -j4) + +Ninja automatically parallelizes, make needs an explicit -j switch. The travis +system uses the make generator, the packaging as well. + +TODO +---- + +The following features have not been implemented yet: + + - documentation + - translation + - unit tests |