Add curl dependency

This commit is contained in:
Henri DF 2016-02-17 20:17:26 -08:00
parent 0a294cd5e5
commit 4c371e5b1d
2 changed files with 24 additions and 1 deletions

View File

@ -24,7 +24,25 @@ endif()
set(PACKAGE_NAME "draios-digwatch")
add_subdirectory(${PROJECT_SOURCE_DIR}/../sysdig ${PROJECT_BINARY_DIR}/sysdig)
add_definitions(-DK8S_DISABLE_THREAD)
set(SYSDIG_DIR ${PROJECT_SOURCE_DIR}/../sysdig)
add_subdirectory(${SYSDIG_DIR} ${PROJECT_BINARY_DIR}/sysdig)
set(CURL_BUNDLE_DIR "${sysdig_BINARY_DIR}/curl-prefix/src/curl")
set(CURL_INCLUDE_DIR "${CURL_BUNDLE_DIR}/include/")
set(CURL_LIBRARIES "${CURL_BUNDLE_DIR}/lib/.libs/libcurl.a")
if(NOT USE_BUNDLED_OPENSSL)
set(CURL_SSL_OPTION "")
else()
set(CURL_SSL_OPTION "--with-ssl=${OPENSSL_INSTALL_DIR}")
endif()
message(STATUS "Using bundled curl in '${CURL_BUNDLE_DIR}'")
message(STATUS "Using SSL for curl in '${CURL_SSL_OPTION}'")
add_subdirectory(userspace/digwatch)

View File

@ -1,5 +1,10 @@
include_directories(${PROJECT_SOURCE_DIR}/../sysdig/userspace/libsinsp/third-party/jsoncpp)
if(NOT APPLE)
include_directories("${CURL_INCLUDE_DIR}")
endif()
include_directories(${PROJECT_SOURCE_DIR}/../sysdig/userspace/libscap)
include_directories(${PROJECT_SOURCE_DIR}/../sysdig/userspace/libsinsp)