Skip to content

Commit 46929a8

Browse files
committed
Move Python-related source files into subdirectory.
1 parent 9d8db3c commit 46929a8

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if(BTCPP_SQLITE_LOGGING)
136136
endif()
137137

138138
if(BTCPP_PYTHON)
139-
list(APPEND BT_SOURCE src/python_types.cpp)
139+
list(APPEND BT_SOURCE src/python/types.cpp)
140140
endif()
141141

142142
######################################################
@@ -172,7 +172,7 @@ if(BTCPP_PYTHON)
172172
find_package(Python COMPONENTS Interpreter Development)
173173
find_package(pybind11 CONFIG)
174174

175-
pybind11_add_module(btpy_cpp src/python_types.cpp src/python_bindings.cpp)
175+
pybind11_add_module(btpy_cpp src/python/bindings.cpp)
176176
target_compile_options(btpy_cpp PRIVATE -Wno-gnu-zero-variadic-macro-arguments)
177177
target_link_libraries(btpy_cpp PRIVATE ${BTCPP_LIBRARY})
178178

include/behaviortree_cpp/tree_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <pybind11/pybind11.h>
3030
#include <pybind11/cast.h>
3131

32-
#include "behaviortree_cpp/python_types.h"
32+
#include "behaviortree_cpp/python/types.h"
3333
#endif
3434

3535
#ifdef _MSC_VER
File renamed without changes.

src/python_types.cpp renamed to src/python/types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "behaviortree_cpp/python_types.h"
1+
#include "behaviortree_cpp/python/types.h"
22

33
#include <pybind11/pybind11.h>
44
#include <pybind11/detail/typeid.h>

0 commit comments

Comments
 (0)