Debian Codegraph @

Help/guide/tutorial/Step5/MathFunctions/CMakeLists.txt

raw
1 add_library(MathFunctions)
2
3 target_sources(MathFunctions
4 PRIVATE
5 MathFunctions.cxx
6
7 PUBLIC
8 FILE_SET HEADERS
9 FILES
10 MathFunctions.h
11 )
12
13 # TODO3: Add a link to MathLogger for the MathFunctions library. Note that
14 # MathLogger will only be used in the MathFunctions implementation,
15 # not the headers
16
17 # TODO8: Add links to OpAdd, OpMul, and OpSub libraries for the
18 # MathFunctions library. Note that their headers will be
19 # exposed in the MathFunctions.h header, and must be available
20 # to consumers.
21
22 target_compile_features(MathFunctions PRIVATE cxx_std_20)
23
24 if(TUTORIAL_USE_STD_SQRT)
25 target_compile_definitions(MathFunctions PRIVATE TUTORIAL_USE_STD_SQRT)
26 endif()
27
28 # TODO4: Add the MathLogger subdirectory
29
30 # TODO9: Add the MathExtensions subdirectory