
Learning Vulkan
By :

CMake is a build process management tool that works in an operating system in a compiler-independent manner. It makes use of CMakeLists.txt
to build project solutions. In this section, we will learn the process of building a CMake file for our first Vulkan application. Refer to the following instructions to understand the creation of this configuration file (CMakeLists.txt
):
Create an empty CMakeLists.txt
file as per the specified folder structure convention, that is, chapter_3 > Sample Name > CMakeLists.txt
. For the purpose of ensuring compatibility across different CMake versions, you need to specify the minimum supported version. If the current version of CMake happens to be lower than the specified one, then it will stop building the solution. The minimum supported version of CMake is specified with cmake_minimum_required
. The following is the code from the CMakeList.txt
file:
cmake_minimum_required(VERSION 3.7.1)
Specify the necessary...