From 5c6f5dcb06470a176186f7717109f9fa35e3bbb4 Mon Sep 17 00:00:00 2001 From: Michael McLeod Date: Thu, 4 Jan 2024 19:51:45 +0000 Subject: [PATCH] Clarification for where to put top level CMake --- 03cpp2/sec03CMakeBasics.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/03cpp2/sec03CMakeBasics.md b/03cpp2/sec03CMakeBasics.md index 61986b6fb..91ef9ff1f 100644 --- a/03cpp2/sec03CMakeBasics.md +++ b/03cpp2/sec03CMakeBasics.md @@ -12,7 +12,9 @@ For most of the exercises and assignments we will provide the basic `CMake` file ## A Simple CMake File -We tell `CMake` what to do by using a file called `CMakeLists.txt`. A project with a more complex directory structure will involve multiple `CMakeLists.txt` files in different folders, but let's start with the assumption that all our files are in one folder. +We tell `CMake` what to do by using a file called `CMakeLists.txt`. A project with a more complex directory structure will involve multiple `CMakeLists.txt` files in different folders, but let's start with the assumption that all our files are in one folder. + +In the same folder with your sources, you could have a file called `CMakeLists.txt` which looks as follows: ``` cmake_minimum_required(VERSION 3.21)