/CMakeLists-Functions-Scope-Variable-Tutorials

Personal Reference file for running and understanding the basic behaviour of CMakeLists.txt.

CMakeLists-Functions-Scope-Variable-Tutorials

Personal Reference file for running and understanding the basic behaviour of CMakeLists.txt.

How to use Tutorials Sheet:

  1. Clone/ Download and Extract this Repository.

  2. Rename CMakeLists-Functions-Scope-Variable.txt to CMakeLists.txt.

  3. 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.)

  4. If cmake error persist, change cmake_minimum_required (VERSION 3.14.7) to your own working cmake version.

  5. Learn the tutorial by uncomment desired section and comment unwanted section.

    Run and have fun. 👍🎉