I am working with an external library that consists of only a .cpp and a .h file.
The pro file for it is rather simple. However it creates all files in folders I do not want.
I rather want them in a different structure, that worked well with Qt 4.x

Qt Code:
  1. QT += core gui
  2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
  3.  
  4. DEFINES += QLIB_COMPILE_LIBRARY
  5. TEMPLATE = lib
  6. CONFIG += shared debug_and_release build_all
  7.  
  8. TARGET = QLIB
  9. CONFIG(debug, debug|release) {
  10. TARGET = $$join(TARGET,,,d) # if compiling in debug mode, append a "d" to the library name
  11. }
  12. SOURCES += QLIB.cpp
  13. HEADERS += QLIB.h
To copy to clipboard, switch view to plain text mode 

If I run qmake it creates theses files and folders


./*_resource.rc
./Makefile*
./debug/
./release/
both with
- *.o
- moc_*
- .a file
- .dll file

I want them to be different:

Qt Code:
  1. PROJECT_ROOT = .
  2. BIN_DIR = $${PROJECT_ROOT}/lib
  3. debug:DESTDIR = $${BIN_DIR}/debug/
  4. release:DESTDIR = $${BIN_DIR}/release/
  5.  
  6. BUILD_DIR = $${PROJECT_ROOT}/build
  7. debug:OBJECTS_DIR = $${BUILD_DIR}/debug/
  8. release:OBJECTS_DIR = $${BUILD_DIR}/release/
  9.  
  10. RCC_DIR = $${BUILD_DIR}/res
  11. MOC_DIR = $${BUILD_DIR}/moc
  12. UI_DIR = $${BUILD_DIR}/ui
To copy to clipboard, switch view to plain text mode 

this creates the .o and .moc files in /build/
and the .a and .dll files in /lib/

However I still get empty folders
/debug/
/release/
and all *.rc files in the main folder instead of build/res/.

why?

Edit:
this question is identical to this one: http://www.qtcentre.org/threads/5907...-proper-folder
though I do not see the answer as a solution.