使用预编译头与CMake [英] Using pre-compiled headers with CMake

查看:388
本文介绍了使用预编译头与CMake的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到一些(旧的)在网上关于一起支持预编译头在CMake中的帖子。他们都似乎有点全面的地方,每个人都有自己的方式做。

I have seen a few (old) posts on the 'net about hacking together some support for pre-compiled headers in CMake. They all seem a bit all-over the place and everyone has their own way of doing it. What is the best way of doing it currently?

推荐答案

有一个第三方CMake模块,它自动使用基于CMake的构建系统的预编译头文件,并支持unity构建。

There is a third party CMake module which automates the use of precompiled headers for CMake based build systems and also supports unity builds.

这篇关于使用预编译头与CMake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆