QTCreator on windows: how to set temp and target folders?

When building a .pro project using QTCreator on Windows, it will create makefile and .o files in debug / release folder. Since I only need .exe, is it possible to configure QTCreator to place all intermediate files (makefiles, .o files, etc.) as c: \ tmp and result.exe in a specified folder such as c: \ out \ debug or c: \ out \ release?

+2


source to share


1 answer


You can specify everything in the file .pro

.

For example, the binary will end up in DESTDIR, so



win32 {
  DESTDIR = C:/myQt/bin

  MOC_DIR      = C:/tmp/moc
  OBJECTS_DIR  = C:/tmp/obj

}

      

will create an unusual output directory as well as temporary directories below C:/tmp

.

+5


source







All Articles