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.