Skip to content
A basic gradle setup for C++ including usage of dynamic libraries as discussed at thoughts-on-cpp.com
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
greeter
testLib
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

gradleNativ

A gradle native based multi project build setup, as discussed on thoughts-on-cpp.com for a C++ command line application.

Getting Started

This is a very basic build setup defined with gradle's native support. To get it up and running you just need to execute ./gradlew build which will build the example application. Tests can be executed via ./gradlew check.

Prerequisites

  • fmt external library used as an example

The {fmt} lib, which is used as an example external library, needs to be on the same directory level as the gradleNative project. In case you want to change the directory make sure to alter the related path defined at at greeter library build.gradle file

def fmtHeaders = file("$rootDir/../fmt/include")

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

You can’t perform that action at this time.