title: C++ with gradle
body: <p>In Gradle 1.10 Release notes <a href="http://www.gradle.org/docs/current/release-notes" rel="noreferrer">http://www.gradle.org/docs/current/release-notes</a> I see C++ build mentioned.</p>
  
  <p><strong>How to set up C++ project to build with gradle?</strong> (without IDE)</p>
  
  <p>Suppose I have </p>
  
  <pre><code>ProjectFolder/hello.cpp
  ProjectFolder/build.gradle
  </code></pre>
  
  <p><code>hello.cpp</code>:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main(void) {
      puts("Hello World!!!");
      return EXIT_SUCCESS;
  }
  </code></pre>
  
  <p><strong>What should basic <code>build.gradle</code> be</strong> for this C++ project?</p>
  
  <p>UPDATE: I have already looked at <a href="https://docs.gradle.org/current/userguide/native_software.html" rel="noreferrer">Chapter 72 of User Guide</a> and 2 year old examples mentioned. They don't make it simpler but more complicated.</p>
  
  <p>There is 1 file example with 6 lines. I haven't been touching C++ for 10 year and I just wanted quick start e.g. with GCC . (Not yet found)</p>