<div dir="ltr"><div>Hello!</div><div><br></div><div>I am having trouble with a generated VS project that I hope is either a bug or has an easy fix...</div><div><br></div><div>When using UseJava, the add_jar function, and Visual Studio 2015, a VS 'Utility' project is created. I then want to add additional non-compiled files to this project so I try to use target_sources but get his error:</div><div><br></div><div>"target_sources called with non-compilable target type"</div><div><br></div><div>In VS, I can easily add files to the project without issue. But I cannot seem to add any additional files to this created 'Utility' project through CMake.</div><div><br></div><div>I do this in other projects by using target_sources and setting the HEADER_FILE_ONLY and WRAP_EXCLUDE properties to make sure the project doesn't do anything with them and it works fine. Just can't do it for these Utility projects.</div><div><br></div><div>My use case here is that the add_jar command doesn't actually add the java source files to the project. I want to use VS as a code editor in this case because it builds the jar. However, without them in the project, I have to go outside of VS to edit them (and thus outside of my VS perforce control).</div><div><br></div><div>Thoughts? Maybe I am adding them incorrectly?</div><div><br></div>-Caleb</div>