mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-02-12 16:11:00 +00:00
initialise with pylibbpf name
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
This commit is contained in:
@ -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})
|
||||
|
||||
Reference in New Issue
Block a user