update: sysdig dir gate in subdirectories

Signed-off-by: Lorenzo Fontana <lo@linux.com>

Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Lorenzo Fontana
2019-07-03 10:05:45 +00:00
committed by Leo Di Donato
parent e688ab7d0a
commit 19c12042f4
4 changed files with 15 additions and 3 deletions

View File

@@ -15,6 +15,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if(NOT SYSDIG_DIR)
set(SYSDIG_DIR "${PROJECT_SOURCE_DIR}/../sysdig")
endif()
set(FALCO_ENGINE_SOURCE_FILES
rules.cpp
falco_common.cpp

View File

@@ -15,8 +15,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
if(NOT SYSDIG_DIR)
set(SYSDIG_DIR "${PROJECT_SOURCE_DIR}/../sysdig")
endif()
configure_file("${PROJECT_SOURCE_DIR}/../sysdig/userspace/sysdig/config_sysdig.h.in" config_sysdig.h)
configure_file("${SYSDIG_DIR}/userspace/sysdig/config_sysdig.h.in" config_sysdig.h)
add_executable(falco
configuration.cpp
@@ -25,7 +28,7 @@ add_executable(falco
event_drops.cpp
statsfilewriter.cpp
falco.cpp
"${PROJECT_SOURCE_DIR}/../sysdig/userspace/sysdig/fields_info.cpp"
"${SYSDIG_DIR}/userspace/sysdig/fields_info.cpp"
webserver.cpp)
target_include_directories(falco PUBLIC
@@ -39,7 +42,7 @@ target_include_directories(falco PUBLIC
target_link_libraries(falco falco_engine sinsp)
target_link_libraries(falco
"${LIBYAML_LIB}"
"${LIBYAML_LIB}"
"${YAMLCPP_LIB}"
"${CIVETWEB_LIB}")