你好,我想要做這樣的事情在我的項目與子目錄正與QMAKE
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
我用qtcreator,但我覺得沒有像這樣的東西。所以我試圖自己寫* .pro文件。現在我有類似
QT += core gui
TARGET = project
TEMPLATE = app
SOURCES += src/main.cpp\
src/mainwindow.cpp
HEADERS += src/mainwindow.h
FORMS += src/mainwindow.ui
但這還不夠。所以我在尋求幫助。
UPD:另外,在.pro.user中有一些用於構建目錄的東西,但我認爲這是錯誤的方式。
將您的可執行文件添加到該行:DESTDIR = bin – kmdent
謝謝,但主要問題在於將dir腳本移動到bin /中。 Make可以做到這一點,但我並不真正瞭解qmake。 – Ximik