Тёмный

Better CMake Part 10 -- When to use FetchContent 

Jefferson Amstutz
Подписаться 1,8 тыс.
Просмотров 5 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@oppdatertdejegabonnererpa9066
@oppdatertdejegabonnererpa9066 2 года назад
Will you cover CTest for a future video? Btw, love the CMake series :)
@ejovo
@ejovo 2 года назад
I second ctest!
@chrisjthrasher
@chrisjthrasher 2 года назад
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.
@Stradigos
@Stradigos 4 месяца назад
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.
@Crossbow123
@Crossbow123 2 года назад
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.
@rockywong3664
@rockywong3664 Год назад
I hope it's not the last tutorial episode.