https://github.com/osquery/osquery logo
Title
b

bachng

08/08/2019, 7:06 AM
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

theopolis

08/08/2019, 2:24 PM
This is a good question, you can create a CMakeLists.txt in your extension’s folder if you need more complex building.
👍 1
b

bachng

08/08/2019, 2:28 PM
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