Add PCH support and 'CATCH_ENABLE_PCH' flag

This commit is contained in:
vittorioromeo
2024-02-07 19:29:21 +01:00
parent 1078e7e95b
commit 38710a38b1
12 changed files with 135 additions and 70 deletions

View File

@@ -11,6 +11,10 @@ add_executable(tests
add_subdirectory(${CATCH2_PATH} catch2-build)
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain)
if (CATCH_ENABLE_PCH)
target_precompile_headers(tests REUSE_FROM Catch2)
endif()
include(CTest)
include(Catch)
catch_discover_tests(tests)