mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 12:14:36 +03:00
14 lines
305 B
CMake
14 lines
305 B
CMake
# Set the minimum version of CMake that can be used
|
|
# To find the cmake version run
|
|
# $ cmake --version
|
|
cmake_minimum_required(VERSION 3.1)
|
|
|
|
# Set the project name
|
|
project (hello_cpp11)
|
|
|
|
# set the C++ standard to C++ 11
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
# Add an executable
|
|
add_executable(hello_cpp11 main.cpp)
|