1
0

CMakeLists.txt 788 B

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