summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qmake/testfunction.pro
blob: 785ffed6be530b02171187658211c33d3938e097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! [0]
defineTest(allFiles) {
    files = $$ARGS

    for(file, files) {
        !exists($$file) {
            return(false)
        }
    }
    return(true)
}
#! [0]

files = delegate.h model.h view.h

allFiles($$files) {
    message(All files are present: $$files)
} else {
    message(Not all files are present: $$files)
}