|
CPGen
C++ project generator
|
Describes the CMake snippets that a module contributes to a target. More...
#include <Resolved.hpp>
Public Attributes | |
| std::string | target_name |
| Name of the CMake target that receives this injection. | |
| std::string | module_name |
| Identifier of the module that produced this injection. | |
| std::vector< std::string > | link |
Libraries to pass to target_link_libraries. | |
| std::optional< std::string > | cmake_include |
Optional CMake module to include() (e.g. "GoogleTest"). | |
| std::optional< std::string > | post_link |
Describes the CMake snippets that a module contributes to a target.
Each module can inject link libraries, an optional include() directive, and an optional post-link command (e.g. gtest_discover_tests) into one or more named targets.
| std::optional<std::string> TargetInjection::cmake_include |
Optional CMake module to include() (e.g. "GoogleTest").
| std::vector<std::string> TargetInjection::link |
Libraries to pass to target_link_libraries.
| std::string TargetInjection::module_name |
Identifier of the module that produced this injection.
| std::optional<std::string> TargetInjection::post_link |
Optional command appended after target_link_libraries (e.g. "gtest_discover_tests(${TARGET_NAME})").
| std::string TargetInjection::target_name |
Name of the CMake target that receives this injection.