Personal Reference file for running and understanding the basic behaviour of CMakeLists.txt.
-
Clone/ Download and Extract this Repository.
-
Rename CMakeLists-Functions-Scope-Variable.txt to CMakeLists.txt.
-
Open in any IDE which you are familiar with. (I created the .txt file in VSCode 1.63.2. Any other version should be fine.)
-
If cmake error persist, change cmake_minimum_required (VERSION 3.14.7) to your own working cmake version.
-
Learn the tutorial by uncomment desired section and comment unwanted section.
Run and have fun. 👍🎉