Hello I want to do something like this in my project
project/
--sources/ -- cpp, h
--forms/ -- ui
--build/ -- object files, mocs
--bin/ -- execute file will appear here
--scripts/ -- this folder should be copied in the bin/ folder after make
project.pro - pro-file
I use qtcreator, but I find nothing like this stuff. So I’ve tried to write *.pro file myself. Now I have something like
QT += core gui
TARGET = project
TEMPLATE = app
SOURCES += src/main.cpp\
src/mainwindow.cpp
HEADERS += src/mainwindow.h
FORMS += src/mainwindow.ui
But this is not enough. So I’m asking for help.
UPD: Also, there is some stuff for build dir in .pro.user, but I think it’s wrong way.
Add this to the bottom of your file. This does everything you need. I listed two methods of copying the scripts to the bin directory. Credit for the second method goes to jwernerny. Ask if you have any questions.
#Two Methods for Copying the scripts over.
OR