mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2025-12-31 20:36:26 +00:00
get compiling
This commit is contained in:
@ -24,9 +24,11 @@ add_custom_target(libbpf_build ALL DEPENDS ${LIBBPF_A})
|
||||
add_library(libbpf_static STATIC IMPORTED GLOBAL)
|
||||
set_target_properties(
|
||||
libbpf_static
|
||||
PROPERTIES IMPORTED_LOCATION ${LIBBPF_A}
|
||||
INTERFACE_INCLUDE_DIRECTORIES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/libbpf/include)
|
||||
PROPERTIES
|
||||
IMPORTED_LOCATION ${LIBBPF_A}
|
||||
INTERFACE_INCLUDE_DIRECTORIES
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/libbpf/include;${CMAKE_CURRENT_SOURCE_DIR}/libbpf/src"
|
||||
)
|
||||
|
||||
add_dependencies(libbpf_static libbpf_build)
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
#define MACRO_STRINGIFY(x) STRINGIFY(x)
|
||||
|
||||
extern "C" {
|
||||
#include "bpf/libbpf.h"
|
||||
#include "libbpf.h"
|
||||
}
|
||||
|
||||
int add(int i, int j) {
|
||||
|
||||
Reference in New Issue
Block a user