minor adjustments

This commit is contained in:
Fancy Zhang
2020-07-04 14:37:28 +08:00
parent e4437071c9
commit 9f4c980c3e
4 changed files with 14 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
# find libbpf
find_library(LIBBPF bpf)
if (LIBBPF-NOTFOUND)
message(FATAL_ERROR "libbpf not found")
endif()
add_library(execsnoop MODULE execsnoop_share.cpp)
target_link_libraries(execsnoop PRIVATE bpf)
install(TARGETS execsnoop DESTINATION ${CMAKE_INSTALL_LIBDIR}/cgproxy/)