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 ?