4.2.2 Specifying Source Files: The glob Method
The glob method can be
used to find files matching the patterns specified.
It supports a syntax similar to the Ruby Dir.glob method but operates more deterministically.
Example use:
build do
Environment.new do |env|
env.Program("mytests", glob("src/**/*.cc", "test/**/*.cc"))
end
end
This example would build the mytests executable from all .cc source files
found recursively under the src or test directory.
|