@Incubating public interface CppSourceSet extends HeaderExportingSourceSet, LanguageSourceSet, DependentSourceSet
A C++ source set contains a set of source files, together with an optional set of exported header files.
apply plugin: "cpp" executables{ main{} } sources { main { // Configure an existing CppSourceSet cpp { source { srcDirs "src/main/cpp", "src/shared/c++" include "**/*.cpp" } exportedHeaders { srcDirs "src/main/include", "src/shared/include" } } } }
exportedHeaders, getExportedHeaders, getImplicitHeaders
getLibs, lib