README.cmake 715 B

12345678910111213141516171819202122232425262728
  1. The Make System
  2. ================
  3. To compile this program using cmake you require cmake 3.3 or newer.
  4. Building
  5. --------
  6. The recommended way is to generate a build directory and build in it, e.g.
  7. mkdir build
  8. cd build
  9. cmake .. OR cmake -G Ninja ..
  10. make -j4 OR ninja
  11. You can use either the make or the ninja generator; the ninja stuff is faster,
  12. though. You can also build in-tree:
  13. cmake -G Ninja
  14. ninja
  15. To build a subdirectory; for example, apt-pkg, use one of:
  16. ninja apt-pkg/all
  17. make -C apt-pkg -j4 (or cd apt-pkg && make -j4)
  18. Ninja automatically parallelizes, make needs an explicit -j switch. The travis
  19. system uses the make generator, the packaging as well.