当前位置: 首页 > news >正文

qmake 文件扩展名操作

 
帮助文档Qt 5.12->qmake Manual->Configuring qmake节选

File Extensions

Under normal circumstances qmake will try to use appropriate file extensions for your platform. However, it is sometimes necessary to override the default choices for each platform and explicitly define file extensions for qmake to use. This is achieved by redefining certain built-in variables. For example, the extension used for moc files can be redefined with the following assignment in a project file:

  QMAKE_EXT_MOC = .mymoc

The following variables can be used to redefine common file extensions recognized by qmake:

  • QMAKE_EXT_MOC modifies the extension placed on included moc files.
  • QMAKE_EXT_UI modifies the extension used for Qt Designer UI files (usually in FORMS).
  • QMAKE_EXT_PRL modifies the extension placed on library dependency files.
  • QMAKE_EXT_LEX changes the suffix used in Lex files (usually in LEXSOURCES).
  • QMAKE_EXT_YACC changes the suffix used in Yacc files (usually in YACCSOURCES).
  • QMAKE_EXT_OBJ changes the suffix used on generated object files.

All of the above accept just the first value, so you must assign to it just one value that will be used throughout your project file. There are two variables that accept a list of values:

  • QMAKE_EXT_CPP causes qmake to interpret all files with these suffixes as C++ source files.
  • QMAKE_EXT_H causes qmake to interpret all files with these suffixes as C and C++ header files.

 qmake 3.1(Qt 5.14.0使用)用户手册9——配置qmake

相关文章:

  • 【javaweb简单教程】9.Servlet与过滤器超简单教程
  • 猛淦,阿里大老纯手撸Spring高级源码手册,啃起来真TM香啊
  • ES6导入与导出(module)
  • 【opencv-c++】cv::imshow和cv::waitKey函数显示图像
  • 第二课 我的第一个程序 hello world
  • 消息队列实现分布式事务
  • 前端性能优化指标 + 检测工具
  • CubeMx笔记 --pwm输出+输入捕获
  • 轻松玩转树莓派Pico之一、新手上路
  • 目前我国网络安全人才市场状况
  • Redis源码解读之用RedisAe实现一个简单的HTTP服务器
  • 【极简python】第一章 print与变量
  • HAL库与Cubemx\rt-thread Nano系列教程-01-新建HAL工程及移植RT-Nano到Alios Developer Kit
  • 论文阅读_知识蒸馏_MobileBERT
  • No2.搭建基本的资源端解析token(资源服务端)
  • 【399天】跃迁之路——程序员高效学习方法论探索系列(实验阶段156-2018.03.11)...
  • 【个人向】《HTTP图解》阅后小结
  • Android优雅地处理按钮重复点击
  • Java比较器对数组,集合排序
  • JDK 6和JDK 7中的substring()方法
  • Linux编程学习笔记 | Linux IO学习[1] - 文件IO
  • MySQL-事务管理(基础)
  • OSS Web直传 (文件图片)
  • python_bomb----数据类型总结
  • tweak 支持第三方库
  • Yeoman_Bower_Grunt
  • 京东美团研发面经
  • 开源中国专访:Chameleon原理首发,其它跨多端统一框架都是假的?
  • 你不可错过的前端面试题(一)
  • 七牛云假注销小指南
  • 融云开发漫谈:你是否了解Go语言并发编程的第一要义?
  • 首页查询功能的一次实现过程
  • 温故知新之javascript面向对象
  • 关于Android全面屏虚拟导航栏的适配总结
  • #AngularJS#$sce.trustAsResourceUrl
  • #宝哥教你#查看jquery绑定的事件函数
  • $().each和$.each的区别
  • $Django python中使用redis, django中使用(封装了),redis开启事务(管道)
  • (+3)1.3敏捷宣言与敏捷过程的特点
  • (Java)【深基9.例1】选举学生会
  • (学习日记)2024.02.29:UCOSIII第二节
  • (原)Matlab的svmtrain和svmclassify
  • (转)Linux整合apache和tomcat构建Web服务器
  • (转)菜鸟学数据库(三)——存储过程
  • * 论文笔记 【Wide Deep Learning for Recommender Systems】
  • .apk文件,IIS不支持下载解决
  • .net core 控制台应用程序读取配置文件app.config
  • .NET DevOps 接入指南 | 1. GitLab 安装
  • .NET Micro Framework初体验(二)
  • .NET开发不可不知、不可不用的辅助类(三)(报表导出---终结版)
  • /proc/vmstat 详解
  • @Data注解的作用
  • @LoadBalanced 和 @RefreshScope 同时使用,负载均衡失效分析
  • [ vulhub漏洞复现篇 ] Jetty WEB-INF 文件读取复现CVE-2021-34429
  • [20150321]索引空块的问题.txt