如何在Windows DLL中嵌入一个特定的清单文件与CMake build? [英] How can I embed a specific manifest file in a Windows DLL with a CMake build?

查看:271
本文介绍了如何在Windows DLL中嵌入一个特定的清单文件与CMake build?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个正在使用CMake构建的DLL,需要嵌入特定的清单文件。在Visual Studio设置中,我可以只添加清单文件名在清单工具/输入和输出/附加清单文件,它工作正常。看起来这是应该可以用CMake,但我一直无法弄清楚。

So I have a DLL that is being built with CMake that requires a specific manifest file to be embedded. In Visual Studio settings I can just add the manifest filename under Manifest Tool/Input and Ouput/Additional Manifest Files, and it works correctly. It seems like this is something that should be doable with CMake, but I have been unable to figure it out.

任何想法如何我可以用CMake完成这个? / p>

Any ideas on how I can accomplish this with CMake?

推荐答案

cmake-3.4现在学会了如何处理作为源文件列出的* .manifest文件。

cmake-3.4 has now learned how to handle *.manifest files listed as source files.

https://cmake.org/cmake/help/v3 .4 / release / 3.4.html#other

这篇关于如何在Windows DLL中嵌入一个特定的清单文件与CMake build?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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