1 cmake_minimum_required(VERSION 3.10)
3 # set the project name and version
4 project(Tutorial VERSION 1.0)
6 # specify the C++ standard
7 set(CMAKE_CXX_STANDARD 11)
8 set(CMAKE_CXX_STANDARD_REQUIRED True)
10 # configure a header file to pass some of the CMake settings
12 configure_file(TutorialConfig.h.in TutorialConfig.h)
15 add_executable(Tutorial tutorial.cxx)
17 # add the binary tree to the search path for include files
18 # so that we will find TutorialConfig.h
19 target_include_directories(Tutorial PUBLIC
20 "${PROJECT_BINARY_DIR}"