mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-23 09:37:51 +08:00

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
14 lines
529 B
CMake
14 lines
529 B
CMake
# TODO1: Add an executable target for the tests
|
|
|
|
# TODO2: Add the TestMathFunctions.cxx file to the test target's sources
|
|
|
|
# TODO3: Add the MathFunctions library to the test target's link libraries
|
|
|
|
# TODO4: Write a function that takes a single operation name as an argument.
|
|
# The function will call add_test() with the operation name as the NAME
|
|
# of the test, and a COMMAND of the form: <TestTarget> <operation name>
|
|
|
|
|
|
# TODO5: Call the function for all four supported operations:
|
|
# add, mul, sqrt, sub
|