Qmake set the output file path and name

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

To generate a set path and name of the program / database by setting the Qt project file.

Set the output name

  • TestTo set the output name;
  • If the file is executed automatically add the suffix (.exe) for the program, if the library is automatically added suffix (.dll) for the library and libxxx.a(here libTest.a) name.
TARGET = Test

Setting output path

  • Output for the .pronext Test catalog items are located.
  • $$PWDMeaning the current directory.
DESTDIR = $$PWD/Test

Other

TEMPLATE = app # 设置为执行文件工程
TEMPLATE = lib # 设置为库文件工程

Guess you like

Origin blog.csdn.net/nicai_xiaoqinxi/article/details/92017961