Q:

How can cmake add custom entry in a project's vcxproj PropertyGroup?

I am using cmake to generate a Windows/VisualStudio solution of a multi-platform C++ project.
There is a specific entry (a simple path to a folder data) in project's properties that I would like cmake to fill in for me. This entry is added by an external plug-in I cannot modify.
Filling the option in VS project properties adds the following entry in the MyAppExecutable.vcxproj file :
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|PLATFORM'">
  <AppDataFolder>D:\myappdata</AppDataFolder>
</PropertyGroup>

I would like cmake to add this AppDataFolder value for me.
It would be even better if it could set it at once for all possible PLATFORM, and whether compiling in Release, Debug or whatever else. Hopefully adding it inside <PropertyGroup Label="Globals"> would achieve this objective ?
Is there a way to make cmake set this value inside the project's file ?

A:

Turning my comment into an answer
For setting a global VS project property you can use the VS_GLOBAL_<variable> target property:
set_target_properties(MyAppExecutable PROPERTIES VS_GLOBAL_AppDataFolder "D:\\myappdata")

Reference

How to Add Linux Compilation to Cmake Project in Visual Studio

