Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Help/guide/tutorial/Step8/Tests/CMakeLists.txt
5018 views
1
# TODO1: Add an executable target for the tests
2
3
# TODO2: Add the TestMathFunctions.cxx file to the test target's sources
4
5
# TODO3: Add the MathFunctions library to the test target's link libraries
6
7
# TODO4: Write a function that takes a single operation name as an argument.
8
# The function will call add_test() with the operation name as the NAME
9
# of the test, and a COMMAND of the form: <TestTarget> <operation name>
10
11
12
# TODO5: Call the function for all four supported operations:
13
# add, mul, sqrt, sub
14
15