grigoryvp
grigoryvp

Reputation: 42523

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

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 ?

Upvotes: 4

Views: 2394

Answers (1)

Dirk is no longer here
Dirk is no longer here

Reputation: 368351

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.

Upvotes: 7

Related Questions