Skip to content
Snippets Groups Projects
Verified Commit 241e53b9 authored by Martin Sjölund's avatar Martin Sjölund
Browse files

Add Qt copy_file parts

parent b5cc69ac
No related branches found
No related tags found
No related merge requests found
*.o *.o
*.out *.out
*.exe *.exe
.qmake.stash
cpp-linux cpp-linux
cpp-*.txt cpp-*.txt
win32.txt win32.txt
Makefile.qt
QtCopyFile
qt.txt
...@@ -25,3 +25,13 @@ cpp-linux.txt: cpp-linux $(SOURCE) ...@@ -25,3 +25,13 @@ cpp-linux.txt: cpp-linux $(SOURCE)
cpp-linux: cpp17.cpp cpp-linux: cpp17.cpp
clang++ -Wall -std=c++17 -o $@ $< -lstdc++fs clang++ -Wall -std=c++17 -o $@ $< -lstdc++fs
qt.txt: QtCopyFile
rm -f $@
./$< $@
QtCopyFile: Makefile.qt qt.cpp
$(MAKE) -f Makefile.qt
Makefile.qt: Qt.pro
qmake -o $@ $<
QT += core
TARGET = QtCopyFile
SOURCES += qt.cpp
#include <assert.h>
int main(int argc, char** argv)
{
assert(argc==2); /* argv[1] is the destination file */
/* Your code here */
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment