CPP: path to libraries


(Francesco Bedini) #1

Hi, I am using the Gradle’s cpp plugin. What would be the equivalent of the compiler argument “-L” to add the path of an external library?

sources
  {
    cpp
    {
      lib library: "xerces-c" 
      source
      {
        srcDirs "src"
        include "*.cpp"
      }
      exportedHeaders
      {
        srcDirs "include", "../other_folders", 
      }
    }
  }

The library xerces-c is in another lib folder, how do I make gradle aware of that?