Yes, I already tried that without detecting any effect. Seems like VS is quite persistent on files it thinks to be able to handle by itself. I will have a look on your feature request.
Thanks a lot for your effords!

Matthias




Eric Noulard schrieb:
2008/10/20 Matthias Riechmann <[EMAIL PROTECTED]>:
Hello,

I'd like to make CMake including a file in way so that it is visible in a
generated visual studio project and can be edited in this way, but is not
processed by the compiler.

Yes I think this issue is coming out more and more.
I've just filed a feature request for this:

http://public.kitware.com/Bug/view.php?id=7835

The reason I need this is as followed: I have some CORBA IDL files that I'd
like to process using a custom macro calling add_custom_command to run the
idl compiler. So far it works quite well, the file is processed on build,
but since I don't specify the IDL file as a source file in the
add_executable command it doesn't appear in visual studio. When adding it to
the source files Microsoft's MIDL compiler tries to work on this file as
well, which is not what I intended to do.

Did you try to add it as a source and then specify that it is "HEADER_FILE_ONLY"
with

set_source_files_properties(<yourfile.idl> PROPERTIES HEADER_FILE_ONLY TRUE)

So, is it in any way possible to just show a custom file in Visual Studio?

I don't think so, thus the feature request.
Do not hesitate to add comment to it if you find it useful.



--
Dipl.-Inform. Matthias Riechmann
Institut für Prozessrechentechnik, Automation und Robotik
Medizin-Gruppe
Universität Karlsruhe (TH)
Gebäude 40.28, Zimmer 103
Engler-Bunte-Ring 8
76131 Karlsruhe

Fon: +49 (721) 608-4049
Fax: +49 (721) 608-7141

Web: http://wwwipr.ira.uka.de/~richmann
begin:vcard
fn:Matthias Riechmann
n:Riechmann;Matthias
org;quoted-printable;quoted-printable:Universit=C3=A4t Karlsruhe (TH);Institut f=C3=BCr Prozessrechentechnik, Automation und Robotik - Medizin-=
	Gruppe
adr;quoted-printable;quoted-printable:Engler-Bunte-Ring 8;;Geb=C3=A4ude 40.28, Zimmer 103;Karlsruhe;Baden-W=C3=BCrttemberg;76131;Germany
email;internet:[EMAIL PROTECTED]
title:Dipl.-Inform.
tel;work:+49 (721) 608-4049
tel;fax:+49 (721) 608-7141
url:http://wwwipr.ira.uka.de/~richmann
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to