diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-09-11 09:21:45 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-09-11 09:28:17 +0200 |
| commit | 4f2bda6a9c188f0c7d028b02b93ab3978fb7543c (patch) | |
| tree | 073c373929d9cf7388ed94bf5fc71dac08970f06 | |
| parent | 00c12916c2d6d4ba7d0a7aa4072c46d1572402ee (diff) | |
| download | tddd86-4f2bda6a9c188f0c7d028b02b93ab3978fb7543c.tar.gz | |
TDDD86 labb 1 redovisninglab1
| -rw-r--r-- | labb1/Life.pro | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/labb1/Life.pro b/labb1/Life.pro new file mode 100644 index 0000000..f6df0e9 --- /dev/null +++ b/labb1/Life.pro @@ -0,0 +1,47 @@ +TEMPLATE = app + +CONFIG += console +# Make sure we do not accidentally #include files placed in 'resources' +CONFIG += no_include_pwd + +SOURCES = $$PWD/src/*.cpp +SOURCES += $$PWD/lib/*.cpp +HEADERS = $$PWD/src/*.h +HEADERS += $$PWD/lib/StanfordCPPLib/*.h +HEADERS += $$PWD/lib/*.h + +QMAKE_CXXFLAGS += -std=c++11 + +INCLUDEPATH += $$PWD/lib/StanfordCPPLib/ +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() +} |
