<br><font size=2 face="sans-serif">Hi</font>
<br>
<br><font size=2 face="sans-serif">I solved this exact problem by using
the add_custom_command, to write the command for the midl tool. (I created
a macro for it)</font>
<br>
<br><font size=2 face="sans-serif">Now I neatly get the generated tlb and
header files, and now i can easily list them in the visual studio.</font>
<br>
<br><font size=2 face="sans-serif">However, I'm yet to figure out how to
add the idl files to the project, so that I may see them in the IDE, without
having it try to handle them with the midl tool. (the default way)</font>
<br>
<br><font size=2 face="sans-serif">I tried using the source file properties
COMPILE_DEFINITIONS, HEADER_FILE_ONLY and even EXTERNAL_OBJECT on the idl
files to work my way around, but this did not generate any changes to the
VS 2005 project.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Is there any way to affect, through
CMake, how visual studio uses the midl tool on idl files? Is this even
theoretically possible?</font>
<br>
<br><font size=2 face="sans-serif">Is there any way to add files to a project
so that they are not compiled, even though they normally would?</font>
<br>
<br><font size=2 face="sans-serif">-mika</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Mika.Rajala@patria.fi</b>
</font>
<br><font size=1 face="sans-serif">Sent by: cmake-bounces@cmake.org</font>
<p><font size=1 face="sans-serif">23.02.2011 13:31</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">cmake@cmake.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[CMake] MIDL include directiories</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Hi</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I'd like to know is it possible to give additional include directories
for the MIDL tool in Visual Studio 2005 with CMakeLists.txt code.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
The include_directories command does not work for the MIDL tool parameters.</font><font size=3>
<br>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
To delve deeper into the reason why this is a problem, helloworld1.idl
uses helloworld2.idl and as such is unable to find it in any given directory.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
My files are organized in a manner similar to this:</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
CMakeLists.txt</font><font size=3> </font><font size=2 face="sans-serif"><br>
code/helloworld1.idl</font><font size=3> </font><font size=2 face="sans-serif"><br>
code/helloworld2.idl</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
-mika</font><font size=2><tt>_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.cmake.org/mailman/listinfo/cmake</tt></font>
<br>