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