mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2025-12-31 20:36:26 +00:00
11 lines
345 B
CMake
11 lines
345 B
CMake
cmake_minimum_required(VERSION 4.0)
|
|
project(pylibbpf)
|
|
|
|
add_subdirectory(pybind11)
|
|
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(pylibbpf
|
|
PRIVATE VERSION_INFO=${EXAMPLE_VERSION_INFO})
|