2
0

CMakeLists.txt 823 B

123456789101112131415161718
  1. # catch2 is distributed as a standalone header / source amalgamation.
  2. #
  3. # Downloaded from:
  4. #
  5. # https://github.com/catchorg/Catch2/releases/tag/v3.6.0
  6. #
  7. # The following changes were made to always print in microseconds, fixed format:
  8. #
  9. # - explicit Duration(double inNanoseconds, Unit units = Unit::Auto)
  10. # + explicit Duration(double inNanoseconds, Unit units = Unit::Microseconds)
  11. #
  12. # - return os << duration.value() << ' ' << duration.unitsAsString();
  13. # + return os << std::fixed << duration.value() << ' ' << duration.unitsAsString();
  14. add_library(catch2 STATIC catch_amalgamated.cpp)
  15. target_compile_definitions(catch2 PRIVATE CATCH_CONFIG_NOSTDOUT CATCH_AMALGAMATED_CUSTOM_MAIN)
  16. add_library(Catch2::Catch2 ALIAS catch2)
  17. target_include_directories(catch2 INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")