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

A build target after module injections have been applied. More...

#include <Resolved.hpp>

Public Member Functions

bool operator== (const ResolvedTarget &other) const
 Equality based solely on the target name.
 

Public Attributes

TargetType type = TargetType::Executable
 CMake target kind.
 
std::string name
 Target name used in CMake (e.g. "test").
 
std::string path
 Relative source directory for this target.
 

Detailed Description

A build target after module injections have been applied.

Two ResolvedTarget objects are considered equal (for deduplication purposes) when their name fields match, regardless of type or path.

Member Function Documentation

◆ operator==()

bool ResolvedTarget::operator== ( const ResolvedTarget other) const
inline

Equality based solely on the target name.

Parameters
otherThe target to compare against.
Returns
true if both targets share the same name.

Member Data Documentation

◆ name

std::string ResolvedTarget::name

Target name used in CMake (e.g. "test").

◆ path

std::string ResolvedTarget::path

Relative source directory for this target.

◆ type

TargetType ResolvedTarget::type = TargetType::Executable

CMake target kind.


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