-
Notifications
You must be signed in to change notification settings - Fork 28
/
qt-mustache.pro
38 lines (29 loc) · 994 Bytes
/
qt-mustache.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
######################################################################
# Automatically generated by qmake (2.01a) Mon Aug 27 11:20:05 2012
######################################################################
TEMPLATE = app
DEPENDPATH += . src tests
INCLUDEPATH += . src tests
QT += testlib
QT -= gui
CONFIG -= app_bundle
!win32 {
QMAKE_CXXFLAGS += -Werror -Wall -Wextra -Wnon-virtual-dtor
}
# Input
HEADERS += src/mustache.h tests/test_mustache.h
SOURCES += src/mustache.cpp tests/test_mustache.cpp
# Copies the given files to the destination directory
defineTest(copyToDestdir) {
files = $$1
for(FILE, files) {
DDIR = $$OUT_PWD
# Replace slashes in paths with backslashes for Windows
win32:FILE ~= s,/,\\,g
win32:DDIR ~= s,/,\\,g
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
}
export(QMAKE_POST_LINK)
}
copyToDestdir($$PWD/tests/*.mustache)
copyToDestdir($$PWD/tests/specs/*.json)