1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-22 16:07:49 +08:00
Files
CMake/Help/guide/tutorial/Step3/CMakeLists.txt
Vito Gamberini b2e3e3e30e Tutorial: Rewrite using conventions enabled by CMake 3.23
This is a full re-write of the CMake Tutorial for CMake 3.23, both
the functionality it provides, as well as the modern workflows that
developers use when interfacing with CMake.

Issue: #22663, #23086, #23799, #26053, #26105, #26153, #26914
2025-09-17 11:57:23 -04:00

19 lines
540 B
CMake

cmake_minimum_required(VERSION 3.23)
project(Tutorial)
# TODO1: Add a default ON option for a cache variable named:
# TUTORIAL_BUILD_UTILITIES.
# option() requires a doc string as its second argument, set this to
# something like:
# "Build the Tutorial executable"
# TODO2: Add a conditional statement around add_subdirectory(Tutorial). Only
# build the Tutorial target if TUTORIAL_BUILD_UTILITIES is ON (or
# otherwise truthy).
add_subdirectory(Tutorial)
add_subdirectory(MathFunctions)