Currently I have the following directory structure:
src
-folder1
-folder2
-folder3
dub.sdl
How do I convince dub to compile files only from specific directory. I tried this, but it doesn't work, dub compiles everything in "src" folder.
configuration "library" {
targetType "library"
targetPath "lib"
sourceFiles "src/folder1"
}
configuration "benchmark" {
targetType "executable"
targetPath "bin"
sourceFiles "src/folder2"
}
configuration "demo" {
targetType "executable"
targetPath "bin"
sourceFiles "src/folder3"
}
I tried also excludeSourceFiles but this is not productive, I have a lot of folders and source files.