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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake