0:目录结构
step1->
--build(自己建的一个空目录)
--CMakeLists.txt
--tutorial.cxx
--TutorialConfig.h.in
1. CMakeLists.txt
cmake_minimum_required(VERSION 3.10)
#set the project name and version
project(Tutorial VERSION 1.0)
#specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
configure_file(TutorialConfig.h.in TutorialConfig.h)
#add the executable
add_executable(Tutorial tutorial.cxx)
target_include_directories(Tutorial PUBLIC
"${PROJEC