Minimal CMakeLists.txt for executables
This is the minimal CMakeLists.txt for building an executable named myproject
from main.cpp
:
cmake_minimum_required (VERSION 2.8.11)
project (MyProject)
add_executable (myproject main.cpp)
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow