model { components { HTTPTimeServer(NativeExecutableSpec) { sources { cpp.source { srcDir 'HTTPTimeServer/src' include '**/*.cpp' } cpp.lib project: ':Net', library: 'Net' cpp.lib project: ':Util', library: 'Util' cpp.lib project: ':Foundation', library: 'Foundation' } } } binaries { all { } withType(SharedLibraryBinarySpec) { lib project: ':Foundation', library: 'Foundation', linkage: 'shared' } withType(StaticLibraryBinarySpec) { lib project: ':Foundation', library: 'Foundation', linkage: 'static' } withType(NativeExecutableSpec) { lib project: ':Foundation', library: 'Foundation', linkage: 'static' } } } task samples { dependsOn "assemble" }