I’ve found that FetchContent is perfect for grabbing testing frameworks. Tests aren’t part of a project’s API so vendoring this dependency should place no extra burden on packagers who will disable tests while providing a really convenient experience for developers and CI runners who may not have the specific test framework version already installed.
@oppdatertdejegabonnererpa90662 жыл бұрын
Will you cover CTest for a future video? Btw, love the CMake series :)
@ejovo2 жыл бұрын
I second ctest!
@Stradigos3 ай бұрын
How do you do this with Boost? I cannot figure that out. I'm using FetchContent to get it, and it configures it, but find_package does not work on it.
@Crossbow1232 жыл бұрын
I'm somewhat surprised though that neither the official CMake documentation nor the official CMake book mention any of this apart from the "raw" documentation of the functions.