2023-10-29 11:12:00 +00:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(Tutorial)
|
2023-10-29 10:50:48 +00:00
|
|
|
# TODO 7: Set the project version number as 1.0 in the above project command
|
|
|
|
|
|
|
|
# TODO 6: Set the variable CMAKE_CXX_STANDARD to 11
|
|
|
|
# and the variable CMAKE_CXX_STANDARD_REQUIRED to True
|
2023-10-30 08:12:13 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
2023-10-29 10:50:48 +00:00
|
|
|
|
|
|
|
# TODO 8: Use configure_file to configure and copy TutorialConfig.h.in to
|
|
|
|
# TutorialConfig.h
|
|
|
|
|
2023-10-29 11:12:00 +00:00
|
|
|
add_executable(Tutorial tutorial.cxx)
|
2023-10-29 10:50:48 +00:00
|
|
|
# TODO 9: Use target_include_directories to include ${PROJECT_BINARY_DIR}
|