CMakeLists.txt 809 B

123456789101112131415161718192021222324252627282930
  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 OpAdd, OpMul, and OpSub libraries for the
  14. # MathFunctions library. Note that their headers will be
  15. # exposed in the MathFunctions.h header, and must be available
  16. # to consumers.
  17. target_compile_features(MathFunctions PRIVATE cxx_std_20)
  18. if(TUTORIAL_USE_STD_SQRT)
  19. target_compile_definitions(MathFunctions PRIVATE TUTORIAL_USE_STD_SQRT)
  20. endif()
  21. # TODO4: Add the MathLogger subdirectory
  22. # TODO9: Add the MathExtensions subdirectory