Summary of code changes

In this chapter, we have discussed how to port a project to CMake. We have considered the Vim project as an example and added the following files:

.├── CMakeLists.txt└── src    ├── autogenerate.cmake    ├── CMakeLists.txt    ├── config.h.cmake.in    ├── libvterm    │   └── CMakeLists.txt    ├── pathdef.c.in    └── testdir        ├── CMakeLists.txt        └── test.cmake

The changes can be browsed online: https://github.com/dev-cafe/vim/compare/b476cb7...cmake-support.

This was an incomplete proof of concept port to CMake, where we left out many options and tweaks for simplicity and tried to focus on the most salient features and steps.

Get CMake Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.