<div dir="ltr">Sorry, I've never used either functionality myself. I just wanted to point out what exists.<br><br>Petr<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 5, 2014 at 2:04 PM, Luca Gherardi <span dir="ltr"><<a href="mailto:luca.gherardi@unibg.it" target="_blank">luca.gherardi@unibg.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Peter,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I tried to use the include_external_msproject(PROJECT_NAME PATH_TO_VCXPROJ)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The project is included in the solution, however when I try to build the solution VS returns the following error:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">“The operation could not be completed. The parameter is incorrect”<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">No other information.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Any idea?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Luca<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Petr Kmoch [mailto:<a href="mailto:petr.kmoch@gmail.com" target="_blank">petr.kmoch@gmail.com</a>] <br>
<b>Sent:</b> mercoledì 5 febbraio 2014 12:34<br><b>To:</b> Luca Gherardi<br><b>Cc:</b> <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br><b>Subject:</b> Re: [CMake] How to manage dependencies between projects in Visual Studio<u></u><u></u></span></p>
</div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Hi Luca.<u></u><u></u></p></div><p class="MsoNormal">You could look into the CMake command include_external_msproject(), or into the ExternalProject module.<br>
<br>Petr<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">On Wed, Feb 5, 2014 at 12:19 PM, Luca Gherardi <<a href="mailto:luca.gherardi@unibg.it" target="_blank">luca.gherardi@unibg.it</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal">I’m working with Visual Studio and I need to create the CMakeLists files for the following scenario.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I have a project A, which contains the sources for a library.<u></u><u></u></p><p class="MsoNormal">This project has its own CMakeLists and generates a lib (add_library).<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I have a second project B, which contains the sources from an executable and uses the library generated by A.<u></u><u></u></p><p class="MsoNormal">I would like to setup its CMakeLists in such a way that:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p>-<span style="font-size:7.0pt">        </span>The Visual Studio solution generated from the CMakeLists of B includes the projects for A and B<u></u><u></u></p><p>-<span style="font-size:7.0pt">        </span>The project A should be just a link to the project generated with the CMakeLists of A. In other words I would like to avoid duplications of compilation files. I would like that the file generated for A by a compilation started from the solution of A were stored in the same path of the file generated for A by a compilation started from the solution of B.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Is that possible?<u></u><u></u></p><p class="MsoNormal">I know it is possible to do it with visual studio, but I don’t know how to do it with CMake.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Thanks in advance.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal" style="margin-bottom:13.5pt">------------------------------------------------------------------------------<u></u><u></u></p>
<p class="MsoNormal">Luca Gherardi, PhD<br>Postdoc at ETH Zurich<br>Institute for Dynamic Systems and Control<br>Room ML K 34<br>Sonneggstrasse 3 - 8092 Zurich<u></u><u></u></p><p class="MsoNormal">SWITZERLAND<u></u><u></u></p>
<p class="MsoNormal"><br>Office: <a href="tel:%2B41%2044%20632%2073%2055" target="_blank">+41 44 632 73 55</a><br>Mobile: <a href="tel:%2B41%20788%20833%20174" target="_blank">+41 788 833 174</a><br>Home: <a href="http://www.lucagherardi.it" target="_blank">http://www.lucagherardi.it</a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal"><br>--<br><br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br><br>CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div>
</div></blockquote></div><br></div>