Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I embed a specific manifest file in a Windows DLL with a CMake build?

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.

Any ideas on how I can accomplish this with CMake?

like image 945
Gerald Avatar asked Jun 13 '11 19:06

Gerald


People also ask

What is manifest in DLL?

A manifest is some XML (typically embedded into . dll and .exe files) which can (among other things) specify the exact version of the Microsoft Visual C++ runtime (MSVCRT) that an application requires.

What is Mt exe?

The Mt.exe file is a tool that generates signed files and catalogs. It is available in the Microsoft Windows Software Development Kit (SDK). Mt.exe requires that the file referenced in the manifest be present in the same directory as the manifest.

How do I open a Manifest File in Visual Studio 2017?

Manifest generation in Visual StudioUnder Configuration Properties, select Linker > Manifest File > Generate Manifest.


1 Answers

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

like image 123
Davy Durham Avatar answered Sep 28 '22 05:09

Davy Durham