diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-12-03 16:27:06 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-12-03 16:27:06 +0100 |
| commit | 7b7f6808a7b2db2ed21103767434c1445f7815c2 (patch) | |
| tree | 7b3553187d169757fedcdaf20f286761f29c2551 /labb7/PatternRecognition.pro | |
| parent | 0a8d737eccc6bfdb6ad7b9aaa1f6fc7c5b84f1eb (diff) | |
| download | tddd86-7b7f6808a7b2db2ed21103767434c1445f7815c2.tar.gz | |
add given files l7
Diffstat (limited to 'labb7/PatternRecognition.pro')
| -rw-r--r-- | labb7/PatternRecognition.pro | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/labb7/PatternRecognition.pro b/labb7/PatternRecognition.pro new file mode 100644 index 0000000..a63cef6 --- /dev/null +++ b/labb7/PatternRecognition.pro @@ -0,0 +1,40 @@ +QT += widgets +SOURCES = $$PWD/src/*.cpp +#SOURCES += $$PWD/lib/*.cpp +HEADERS = $$PWD/src/*.h +#HEADERS += $$PWD/lib/*.h + +QMAKE_CXXFLAGS += -std=c++11 + +INCLUDEPATH += $$PWD/lib/ + +# 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 + + !win32 { + QMAKE_POST_LINK += cp -r '"'$$FILE'"' '"'$$DDIR'"' $$escape_expand(\\n\\t) + } + win32 { + QMAKE_POST_LINK += xcopy '"'$$FILE'"' '"'$$DDIR'"' /e /y $$escape_expand(\\n\\t) + } + } + + export(QMAKE_POST_LINK) +} +!win32 { + copyToDestdir($$files($$PWD/res/*)) +} +win32 { + copyToDestdir($$PWD/res) +} +macx { + cache() +} |
