PDA

View Full Version : QMake Change qmake output folders (debug/release)



superpacko
29th August 2011, 19:34
Hi, im building my project with Qt Creator and i cant find a way to avoid the /debug and /release folders that qmake is generating.

i used DESTDIR to output my files, but somehow qmake is still craeting the debug and release folders empty. I 've seen that the resulting makefiles have this line :

SUBTARGETS = \
debug \
release

I wonder where can i change this configuration, since i dont want any of these folders.

Heres my .pro:


#-------------------------------------------------
#
# Project created by QtCreator
#
#-------------------------------------------------

QT = core

TARGET = commandservice
TEMPLATE = lib
CONFIG += qt staticlib

include(../build/commons)

DESTDIR = ../.lib/
OBJECTS_DIR = ../.obj/

INCLUDEPATH += \
../utils/

SOURCES += \
GPGEncryptionService.cpp \
GPGKeyManagementService.cpp \
GPGService.cpp \
GPGServiceImplFactory.cpp

HEADERS += \
CommandService.h \
CommandServiceImpl.h \
GPGEncryptionService.h \
GPGEncryptionServiceParams.h \
GPGKeyManagementService.h \
GPGKeyManagementServiceParams.h \
GPGService.h \
GPGServiceEncryptionException.h \
GPGServiceKeyManagementException.h \
ServiceParams.h \
GPGServiceImplFactory.h

win32 {
SOURCES += GPGServiceImplWin.cpp \
HEADERS += GPGServiceImplWin.h \
GPGServiceImplWinException.h
}

macx {
SOURCES += GPGServiceImplMac.cpp
HEADERS += GPGServiceImplMac.h

}

unix {
SOURCES += GPGServiceImplLinux.cpp
HEADERS += GPGServiceImplLinux.h
}

wagarcia
12th June 2013, 21:11
Hello, I’m new to QT Creator but I’ve noticed that projects with DESTDIR and MOC_DIR set don’t generate the extra debug and release folders. Try adding:


MOC_DIR = ../.obj/

Remember to remove the any existing debug and release folders before rebuilding. Also, I usually run qmake if the removal of the debug and release folders temporally cause an error.