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
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 += core
greaterThan(QT_MAJOR_VERSION, 4): QT +=widgets
CONFIG += debug
CONFIG -= release
TARGET = test
TEMPLATE = app
SOURCES += main.cpp
All the compiler generated files will be in bin folder.
Keep the source code folder clean.
I believe you can use the option DESTDIR
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.
Thanks for the advice. What is DESTDIR? and how can I use it?
You can find more information here:
(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.