Question

While building .pro project using QTCreator on windows, it will create an makefile and .o files in debug/release folder. Since i need only .exe, is it possible to configure QTCreator to put all intermediate files (makefiles, .o files etc) into something like c:\tmp and resulting .exe into specified folder like c:\out\debug or c:\out\release ?

Was it helpful?

Solution

You can specify everything in the .pro file.

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

}

would set up an unusual output directory as well as temporary directories below C:/tmp.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top