Hi,<div><br></div><div>I used the following code to add protobuf project to my "solution":</div><div><br></div><div>$-------------- script ----------------------$</div><div><div><br></div><div>if( MSVC )</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>include_external_msproject( libprotobuf ${CMAKE_CURRENT_SOURCE_DIR}/protobuf/vsprojects/libprotobuf.vcproj )</div><div>else()</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>message( "No project file set for protobuf for this platform!" )</div>
<div>endif()</div><div><br></div><div>set( PROTOBUF_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/protobuf/src PARENT_SCOPE )</div><div><br></div><div>set_property( TARGET libprotobuf<span class="Apple-tab-span" style="white-space:pre">                                        </span>PROPERTY FOLDER ${NETRUSH_DEPENDENCIES_PROJECTS_GROUP_PATH}/protobuf )</div>
</div><div><br></div><div><br></div><div><br class="Apple-interchange-newline">$-------------- end script ----------------------$
</div><div><br></div><div>This works.</div><div>The problem I have is with the virtual directories that cannot work correctly: the protobuf project file is for VS2008 while I'm using VS2010. </div><div>This makes visual studio try to convert the project, and succeed.</div>
<div>But the project isn't located in the right solution virtual directory that I set in the last line of this script (it works with all other projects).</div><div><br></div><div>So I think that the conversion do something that makes the solution generated by CMake not point to the right project because it is different once the project have been converted.</div>
<div><br></div><div>I don't know if it can be fixed on your side but "now you know". :)</div><div><br></div><div>Joël Lamotte</div>