Qmake in windows?
-
I'm using qmake and everything works perfectly. In windows, I typed
qmake -o Makefile hello.pro
This line generates the following files
debug (folder)
release (folder)
Makefile
Makefile.Debug
Makefile.I don't want to create an independent folder for debug nor release . My question is that how can I generate executable file in the current directory of my project. This is my hello.pro
@
QT += coregreaterThan(QT_MAJOR_VERSION, 4): QT +=widgets
CONFIG += debug
CONFIG -= release
TARGET = test
TEMPLATE = app
SOURCES += main.cpp
@ -
-
I believe you can use the option DESTDIR
-
@MarlanMMX,
Thanks for the advice. I'm stilling getting the folders inside bin folder. Is there a command in qmake for not generating these folders? I'm happy with bin folder.@t3685,
Thanks for the advice. What is DESTDIR? and how can I use it? -
You can find more information here:
https://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#destdir
https://qt-project.org/doc/qt-5.1/qmake/qmake-advanced-usage.html -
Go to
QT-DIR\mkspecs(compiler)
(ex., if you use Visual C++ 2010 QT-DIR\mkspecs\win32-msvc2010\ )
copy qmake.conf to qmake.conf.bak
open qmake.conf, find (line 9)
@CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe@
remove debug_and_release debug_and_release_target, and save the file.
Delete files in project bin folder and run qmake again.