For example i have .pro file:
TEMPLATE = lib
INCLUDEPATH = ../include \
../../common/libxml2/include \
../../common/iconv/include \
../../common/include
OUTPUT = ../../..
TEMP = ../../../temp/dstr/file
CONFIG += plugin
RCC_DIR = ./res
RESOURCES = ./res/resource.qrc
Debug {
DEFINES += _DEBUG
DESTDIR = $${OUTPUT}/debug
OBJECTS_DIR = $${TEMP}/debug
} else {
DESTDIR = $${OUTPUT}/release
OBJECTS_DIR = $${TEMP}/release
}
win32 {
LIBS += $${DESTDIR}/libxml2.lib
} else {
LIBS += -lxml2
}
MOC_DIR = $${OBJECTS_DIR}
PRECOMPILED_HEADER = std.h
HEADERS += header.h
SOURCES += main.cpp
TEMPLATE = lib
INCLUDEPATH = ../include \
../../common/libxml2/include \
../../common/iconv/include \
../../common/include
OUTPUT = ../../..
TEMP = ../../../temp/dstr/file
CONFIG += plugin
RCC_DIR = ./res
RESOURCES = ./res/resource.qrc
Debug {
DEFINES += _DEBUG
DESTDIR = $${OUTPUT}/debug
OBJECTS_DIR = $${TEMP}/debug
} else {
DESTDIR = $${OUTPUT}/release
OBJECTS_DIR = $${TEMP}/release
}
win32 {
LIBS += $${DESTDIR}/libxml2.lib
} else {
LIBS += -lxml2
}
MOC_DIR = $${OBJECTS_DIR}
PRECOMPILED_HEADER = std.h
HEADERS += header.h
SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode
I run qmake program:
C:\temp>qmake project.pro
C:\temp>qmake project.pro
To copy to clipboard, switch view to plain text mode
Program generates files Makefile, Makefile.Release, Makefile.Debug and TEMP, DESTDIR and RCC_DIR directories, as they defined in .pro file.
But i only need Makefiles without generated directories.
Bookmarks