[CMake] visual studio 2010 and assembler files

Questor Fused questor at fused.de
Thu Oct 7 07:23:37 EDT 2010


An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101007/48fad00f/attachment.htm>
-------------- next part --------------
Hi,I've tried to include assembler-files in one of my projects and with the masm-rule I have included the sourcefiles like normal c++-files in my library and enabled masm-support. But when I generate the visual studio 2010 solution the files are included without a custom command to compile the file or something else.When I understand it right, the files can be included without a custom tool, but you need in the vcproj-file the following:(taken from here: http://blogs.msdn.com/b/vcblog/archive/2010/04/21/quick-help-on-vs2010-custom-build-rule.aspx )but to make visual studio compile it with masm the "" has to be "Document"I've already patched the extensionsettings and -targets in cmVisualStudio10TargetGenerator.cxx, but I don't know how to patch the sources for the second needed change(ClInclude to MASM). Could anybody help here?And is this the prefered solution to include assembler-files into cmake? (this patch only works with vs2010, what's with the other versions or ides...)As a sidenote: I've tried to include the obj-file in the normal file-list like:ADD_LIBRARY(foobar1.cppbar2.cppasmcode.obj)but the generated visual-studio-2010-project contained an error (the asmcode.obj is now listed two times and can't be loaded from visual studio)regardskai


More information about the CMake mailing list