qmake整理三

子目录项目

#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选项生效。链接

单元测试

Qt Test(c++,qml )

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值