Hi. my external c++ extension requires external li...
# general
b
Hi. my external c++ extension requires external library
#include <curl/curl.h>
. how do I compile with additional flags
-L /usr/include/x86_64-linux-gnu/ -lcurl
using
make externals
? Should I modify
CMakeLists.txt
in osquery root folder?
t
This is a good question, you can create a CMakeLists.txt in your extension’s folder if you need more complex building.
đź‘Ť 1
b
yes I figured out we can use
ADD_OSQUERY_EXTENSION
and
ADD_DEPENDENCIES
to register extension and link libraries :)) thanks to cmakelists.txt of this repo https://github.com/osql/extensions