子目录项目
#subdirs模板表示要编译多个子目录中的工程,在这个模板中只有一个系统变量SUBDIRS可以被识别
TEMPLATE = subdirs
#CONFIG += ordered #CONFIG选项要求各个子项目按顺序编译,子目录的编译顺序在SUBDIRS中指明
# 子目录
SUBDIRS += \
untitled2 \ #会把当前目录下目录untitled2下的untitled2.pro项目添加进来
untitled
# 当子项目目录,pro,子目录名不一致,通过file属性指定
untitled2.file = untitled1/untitled3.pro
#子目录额外的修饰符来
#.subdir Use the specified subdirectory instead of SUBDIRS value.
#.file Specify the subproject pro file explicitly. Cannot be used in conjunction with #.subdir modifier.
#.depends This subproject depends on specified subproject.
#.makefile The makefile of subproject. Available only on platforms that use makefiles.
#.target Base string used for makefile targets related to this subproject. Available only on platforms that use makefiles.
库(动态库,静态库,插件)
TEMPLATE = lib//编译成库
CONFIG 配置
dll - 库是一个共享库(dll)。
staticlib - 库是一个静态库。
plugin - 库是一个插件,这将会使dll选项生效。链接