Step 2 of 5
Folder and CMakeLists.txt
Goal
Create the project structure.
Create a hola-cpp/ folder with a minimal CMakeLists.txt. CMake generates the Makefile or IDE project from this file.
Follow these steps
- Create the project folder.
- Paste
CMakeLists.txtand save. - Open a terminal in that folder.
cmake_minimum_required(VERSION 3.16)
project(hola_cpp CXX)
add_executable(hola main.cpp)