add C++ example of build by Gradle

This commit is contained in:
Juraj Michalek
2013-11-22 16:19:17 +01:00
parent 69209f4bee
commit 184046961d
4 changed files with 28 additions and 0 deletions

View File

@@ -68,6 +68,22 @@ How to run:
make
./helloworld
Gradle
------
Example of building C/C++ project by Gradle.
Gradle is using build.gradle file in main project directory.
Check out project layout. Source code is stored in src/main/cpp.
This is defined by convention and Gradle is able to use it, no further configuration is needed.
Gradle is able to determine compiler chain and use available compiler, e.g. g++ or Visual Studio.
How to run (Linux):
cd gradle/hellomuni
gradle mainExecutable
cd build/binaries/mainExecutable
./hellomuni
Minunit testing
---------------