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

订阅专栏 解锁全文
792

被折叠的 条评论
为什么被折叠?



