initialise with pylibbpf name

Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
This commit is contained in:
2025-09-20 23:24:14 +05:30
parent f5eb8e18c2
commit 97eb8f6d1a
14 changed files with 406 additions and 261 deletions

View File

@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.4...3.18)
project(cmake_example)
cmake_minimum_required(VERSION 4.0)
project(pylibbpf)
add_subdirectory(pybind11)
pybind11_add_module(cmake_example src/main.cpp)
pybind11_add_module(pylibbpf src/main.cpp)
# EXAMPLE_VERSION_INFO is defined by setup.py and passed into the C++ code as a
# define (VERSION_INFO) here.
target_compile_definitions(cmake_example
target_compile_definitions(pylibbpf
PRIVATE VERSION_INFO=${EXAMPLE_VERSION_INFO})