Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding Visual Studio .resx files in cmake
    primarykey
    data
    text
    <p>In CMake, while it is a great cross platform tool, it is also great for managing complex and large configurations. One road block I am hitting is allowing an otherwise cross platform project to have special "Visual Studio" only projects. Namely, I need the output from CMake to, when compiling specific visual studio projects, to have forms designer .resx files. This ends up in an tag as follows:</p> <pre><code>&lt;ItemGroup&gt; &lt;EmbeddedResource Include="Form1.resX"&gt; &lt;DependentUpon&gt;Form1.h&lt;/DependentUpon&gt; &lt;SubType&gt;Designer&lt;/SubType&gt; &lt;/EmbeddedResource&gt; &lt;/ItemGroup&gt; </code></pre> <p>I could do this if I could write a custom rule, or write text, or otherwise have more lower level control over what goes into the visual studio .vcxproj file. </p> <p>The .vcxproj.filters file has a corresponding entry:</p> <pre><code>&lt;ItemGroup&gt; &lt;EmbeddedResource Include="Form1.resX"&gt; &lt;Filter&gt;Resource Files&lt;/Filter&gt; &lt;/EmbeddedResource&gt; &lt;/ItemGroup&gt; </code></pre> <p>There is also a requirement to get resource files added to the .vcxproj:</p> <pre><code>&lt;ItemGroup&gt; &lt;ResourceCompile Include="app.rc" /&gt; &lt;/ItemGroup&gt; </code></pre> <p>And to the .vcxproj.filters:</p> <pre><code>&lt;ItemGroup&gt; &lt;ResourceCompile Include="app.rc"&gt; &lt;Filter&gt;Resource Files&lt;/Filter&gt; &lt;/ResourceCompile&gt; &lt;/ItemGroup&gt; </code></pre> <p>Is this a code change to CMake or something that can otherwise be added? If it is a code change, a point out to where the code changes would have to be made and I can look at making the necessary updates.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload