-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
40 lines (28 loc) · 902 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.16)
project(decentralized_path_auction_python)
set(CMAKE_CXX_STANDARD 17)
set(PKG_DEPS
pybind11_catkin
decentralized_path_auction
)
find_package(PythonLibs REQUIRED)
find_package(
catkin
REQUIRED
COMPONENTS ${PKG_DEPS}
)
catkin_python_setup()
catkin_package(CATKIN_DEPENDS ${PKG_DEPS})
include_directories(${catkin_INCLUDE_DIRS})
pybind11_add_module(bindings src/bindings.cpp)
target_link_libraries(bindings PRIVATE ${catkin_LIBRARIES})
set_target_properties(bindings
PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}
)
# catkin_lint fails to parse the target defined inside pybind11_add_module
if (1) #catkin_lint: skip
install(TARGETS bindings DESTINATION "${PYTHON_INSTALL_DIR}/${PROJECT_NAME}")
endif()
if (CATKIN_ENABLE_TESTING)
catkin_add_nosetests(test)
endif()