From 0ac28adc01c68bb9c11a34af122bac0071733965 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 29 Jul 2014 13:52:42 -0400 Subject: [PATCH] VS: Map .jpg and .png sources to Image tool Inspired-by: Gilles Khouzam --- Source/cmVisualStudio10TargetGenerator.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index b294e684c..d9013e07c 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/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";