[CMake] include restbed in my project

Christofer Jennings bozmoz at gmail.com
Sat May 5 14:21:47 EDT 2018


Hi All,

How do you use a 3rd party dependency like restbed in a cmake build?

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"...

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:
https://github.com/Corvusoft/restbed#build
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.

I'm using the example on the same page as starting point:
https://github.com/Corvusoft/restbed#example

... 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.

Thanks!
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180505/a85a38f5/attachment-0001.html>


More information about the CMake mailing list