CPGen
C++ project generator
Loading...
Searching...
No Matches
Public Attributes | List of all members
FetchContent Struct Reference

Describes a CMake FetchContent dependency to be downloaded at build time. More...

#include <Module.hpp>

Public Attributes

std::string module_name
 
std::string url
 Archive URL or Git repository used for the download.
 

Detailed Description

Describes a CMake FetchContent dependency to be downloaded at build time.

When a module declares a FetchContent block in its JSON definition, it is parsed into this struct and later injected into the generated CMakeLists.txt via a FetchContent_Declare / FetchContent_MakeAvailable call pair.

Member Data Documentation

◆ module_name

std::string FetchContent::module_name

Name passed to FetchContent_Declare (e.g. "googletest").

◆ url

std::string FetchContent::url

Archive URL or Git repository used for the download.


The documentation for this struct was generated from the following file: