Skip to content

Commit

Permalink
Clarification for where to put top level CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael McLeod committed Jan 4, 2024
1 parent fb381a5 commit 5c6f5dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 03cpp2/sec03CMakeBasics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c6f5dc

Please sign in to comment.