[CMake] Customizing manifest

Bill Hoffman bill.hoffman at kitware.com
Mon Aug 18 09:45:45 EDT 2008


? Jan wrote:
> Hi,
> 
> is there any way of customizing manifest in cmake (using MSVC 2008 and 
> Vista)? Particularly, I need to modify requestedExecutionLevel.
> 
> If there is not such possibility, are there any plans for next versions 
> of cmake?
> 
You can do something like this:


   ADD_CUSTOM_COMMAND(TARGET CMakeSetup
     POST_BUILD COMMAND mt
     "${_CMAKE_INPUT_RESOURCE}"
     -manifest "${CMAKE_CURRENT_SOURCE_DIR}/CMakeSetupManifest.xml"
     "-outputresource:${exe};#1"
     ${verbatim_flag}
   )


-Bill


More information about the CMake mailing list