CMake executable minimal example
This CMakeLists.txt builds an executable called main from main.cpp:
CMakeLists.txt
add_executable(main 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