poco/CppUnit/WinTestRunner/build.gradle
2017-10-31 09:07:53 +01:00

34 lines
633 B
Groovy

project(":CppUnit/WinTestRunner") {
model {
components {
PocoWinTestRunner(NativeExecutableSpec) {
sources {
cpp {
source {
srcDir 'src'
include '**/*.cpp'
}
exportedHeaders {
srcDir 'include'
}
}
}
}
}
binaries {
all {
}
withType(SharedLibraryBinarySpec) {
lib project: ':CppUnit', library: 'PocoCppUnit', linkage: 'shared'
if (toolChain in VisualCpp) {
cppCompiler.define "WinTestRunner_EXPORTS"
}
}
withType(StaticLibraryBinarySpec) {
lib project: ':CppUnit', library: 'PocoCppUnit', linkage: 'static'
}
}
}
}