<div dir="ltr">for such things I often include the sources in my tree and just 'add_subdirectory( "extra/restbed" )'<div>it's cleaner to do a external project rule... </div><div>which can download/checkout sources and then build those and the output is findable by other projects just by referencing the targets.</div><div><a href="https://cmake.org/cmake/help/latest/module/ExternalProject.html">https://cmake.org/cmake/help/latest/module/ExternalProject.html</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 5, 2018 at 11:21 AM, Christofer Jennings <span dir="ltr"><<a href="mailto:bozmoz@gmail.com" target="_blank">bozmoz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>How do you use a 3rd party dependency like restbed in a cmake build?</div><div><br></div><div>Total nube here. First dive into CMake and haven't done C++ for a long long time. So forgive my ignorance :) This could just as easily be an "I forgot C++" as an "I don't know CMake"...</div><div><br></div><div>I'm trying to use restbed. I've got it to compile and self test with `cmake, `make install`, and `make test` as directed on the site: <a href="https://github.com/Corvusoft/restbed#build" target="_blank">https://github.com/<wbr>Corvusoft/restbed#build</a></div><div>It makes a `distribution` folder with `include` and `library` sub-folders. The `library` has .a and .so or .dylib files. The `include` folder just has headers, and a `restbed` file with #includes in it.</div><div><br></div><div>I'm using the example on the same page as starting point: <a href="https://github.com/Corvusoft/restbed#example" target="_blank">https://github.com/<wbr>Corvusoft/restbed#example</a></div><div><br></div><div>... I could list out my failed attempts but I don't think it'd help. Basically find_package doesn't find it, and other things I've tried don't work. I'm digging around online but so far nothing seems to fit--which makes me think it's something really really simple that I just don't understand.</div><div><br></div><div>Thanks!</div><div>-Chris</div><div><br></div><div><br></div><div><br></div></div>
<br>-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>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" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/<wbr>listinfo/cmake</a><br>
<br></blockquote></div><br></div>