Browse Source

VS: Map .jpg and .png sources to Image tool

Inspired-by: Gilles Khouzam <[email protected]>
Brad King 11 years ago
parent
commit
0ac28adc01
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/cmVisualStudio10TargetGenerator.cxx

+ 5 - 0
Source/cmVisualStudio10TargetGenerator.cxx

@@ -1019,6 +1019,11 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf)
     {
     tool = "AppxManifest";
     }
+  else if(ext == "jpg" ||
+          ext == "png")
+    {
+    tool = "Image";
+    }
   else if(ext == "xml")
     {
     tool = "XML";