Compiling C ++ using Gradle

17

Gradle is a great ally in both java and android development. I was looking at the site and realized that it can also manage projects in C ++.

How can I use it to compile a super simple project (hello word)?

    
asked by anonymous 05.01.2016 / 19:47

1 answer

1
// build.gradle
apply plugin: 'cpp'

libraries {
   hello {}
}
executables {
   main {
      binaries.all {
          lib libraries.hello.shared
      }
  }
}
  • This example is available here
  • If you would like to learn more about gradle this course is quite complete and free
15.03.2017 / 03:10