Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Help/guide/tutorial/Step3/CMakeLists.txt
5017 views
1
cmake_minimum_required(VERSION 3.23)
2
3
project(Tutorial)
4
5
# TODO1: Add a default ON option for a cache variable named:
6
# TUTORIAL_BUILD_UTILITIES.
7
# option() requires a doc string as its second argument, set this to
8
# something like:
9
# "Build the Tutorial executable"
10
11
12
# TODO2: Add a conditional statement around add_subdirectory(Tutorial). Only
13
# build the Tutorial target if TUTORIAL_BUILD_UTILITIES is ON (or
14
# otherwise truthy).
15
16
add_subdirectory(Tutorial)
17
18
add_subdirectory(MathFunctions)
19
20