1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/pybind/CMakeLists.txt
2020-03-03 19:57:09 -05:00

18 lines
536 B
CMake

set(PYTHON_EXECUTABLE "python3")
find_package(pybind11 REQUIRED)
set(LLARP_PYBIND_SRC
module.cpp
llarp/context.cpp
llarp/router_contact.cpp
llarp/crypto/types.cpp
llarp/config.cpp
llarp/tooling/router_hive.cpp
llarp/tooling/router_event.cpp
)
pybind11_add_module(pyllarp MODULE ${LLARP_PYBIND_SRC})
target_include_directories(pyllarp PRIVATE ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/crypto/libntrup/include ${CMAKE_SOURCE_DIR}/llarp ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(pyllarp PUBLIC ${EXE_LIBS})