Minimales CMakeLists.txt für ausführbare Dateien

English Deutsch

Dies ist das minimale CMakeLists.txt zum Erstellen einer ausführbaren Datei namens myproject aus 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