summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step3/MathFunctions/CMakeLists.txt
blob: 90d6c24958018b1c40a04cea7b64de2d82de530f (plain)
1
2
3
4
5
6
7
8
9
10
11
add_library(MathFunctions MathFunctions.cxx mysqrt.cxx)

# TODO 1: State that anybody linking to MathFunctions needs to include the
# current source directory, while MathFunctions itself doesn't.
# Hint: Use target_include_directories with the INTERFACE keyword

# should we use our own math functions
option(USE_MYMATH "Use tutorial provided math implementation" ON)
if (USE_MYMATH)
  target_compile_definitions(MathFunctions PRIVATE "USE_MYMATH")
endif()