Depends on your generator.  It can be as simple as including the .manifest
in your sources list.
Otherwise you may have to make an extra mt.exe invokation...

https://github.com/d3x0r/SACK/blob/master/src/utils/service/CMakeLists.txt#L42-L53


On Thu, May 2, 2019 at 12:48 AM Fredrik Orderud <forde...@gmail.com> wrote:

> Hi,
> I'm working on a project where I need to configure non-default
> manifest settings when building on Windows. More specifically, I need
> to inject the following tags in the generated vcxproj project:
> <Manifest>
>   <ComponentFileName>$(TargetName)$(TargetExt)</ComponentFileName>
>   <RegistrarScriptFile>AdditionalRegEntries.rgs</RegistrarScriptFile>
> </Manifest>
>
> Any advise on how to achieve this from CMake?
>
> I've already thought about writing a custom script to modify the
> generated vcxproj file, but want to avoid that if possible.
>
> Thanks in advance,
> Fredrik Orderud
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to