2017-11-22 12:48:51 +08:00
|
|
|
From 4227ce0c22e6757db1c66e46b163df7d0ecf1282 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Lukas Bulwahn <lukas.bulwahn@gmail.com>
|
|
|
|
Date: Wed, 22 Nov 2017 13:56:25 +0100
|
2017-04-10 15:47:54 +08:00
|
|
|
Subject: [PATCH] Drop support for python
|
|
|
|
|
|
|
|
Upstream-Status: Inappropriate [ROS still supports python2 officially]
|
|
|
|
|
|
|
|
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
|
2017-11-22 12:48:51 +08:00
|
|
|
|
|
|
|
[I rewrote the patch for the update from 1.11.12 to 1.11.13.]
|
|
|
|
|
|
|
|
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
|
2017-04-10 15:47:54 +08:00
|
|
|
---
|
2017-11-22 12:48:51 +08:00
|
|
|
camera_calibration_parsers/CMakeLists.txt | 22 +---------------------
|
|
|
|
1 file changed, 1 insertion(+), 21 deletions(-)
|
2017-04-10 15:47:54 +08:00
|
|
|
|
2017-11-22 12:48:51 +08:00
|
|
|
diff --git a/camera_calibration_parsers/CMakeLists.txt b/camera_calibration_parsers/CMakeLists.txt
|
|
|
|
index b70b853..b0bdf9a 100644
|
|
|
|
--- a/camera_calibration_parsers/CMakeLists.txt
|
|
|
|
+++ b/camera_calibration_parsers/CMakeLists.txt
|
|
|
|
@@ -3,13 +3,7 @@ project(camera_calibration_parsers)
|
2017-04-10 15:47:54 +08:00
|
|
|
|
|
|
|
find_package(catkin REQUIRED sensor_msgs rosconsole roscpp roscpp_serialization)
|
|
|
|
|
|
|
|
-find_package(PythonLibs REQUIRED)
|
|
|
|
-if(PYTHONLIBS_VERSION_STRING VERSION_LESS 3)
|
|
|
|
- find_package(Boost REQUIRED COMPONENTS filesystem python)
|
|
|
|
-else()
|
|
|
|
- find_package(Boost REQUIRED COMPONENTS filesystem python3)
|
|
|
|
-endif()
|
|
|
|
-include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
|
|
|
|
+include_directories(include ${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
catkin_python_setup()
|
|
|
|
|
2017-11-22 12:48:51 +08:00
|
|
|
@@ -41,17 +35,7 @@ add_library(${PROJECT_NAME}
|
2017-04-10 15:47:54 +08:00
|
|
|
src/parse_yml.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
-add_library(${PROJECT_NAME}_wrapper
|
|
|
|
- src/parse_wrapper.cpp)
|
|
|
|
-
|
|
|
|
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${YAML_CPP_LIBRARIES} ${Boost_FILESYSTEM_LIBRARY})
|
2017-11-22 12:48:51 +08:00
|
|
|
-target_link_libraries(${PROJECT_NAME}_wrapper ${PROJECT_NAME} ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
|
2017-04-10 15:47:54 +08:00
|
|
|
-
|
|
|
|
-# Don't prepend wrapper library name with lib and add to Python libs.
|
|
|
|
-set_target_properties(${PROJECT_NAME}_wrapper PROPERTIES
|
|
|
|
- PREFIX ""
|
|
|
|
- LIBRARY_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}
|
|
|
|
- )
|
|
|
|
|
|
|
|
add_dependencies(${PROJECT_NAME} ${catkin_EXPORTED_TARGETS})
|
|
|
|
|
2017-11-22 12:48:51 +08:00
|
|
|
@@ -74,10 +58,6 @@ install(
|
2017-04-10 15:47:54 +08:00
|
|
|
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
|
|
)
|
|
|
|
|
|
|
|
-install(TARGETS ${PROJECT_NAME}_wrapper
|
|
|
|
- DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION}
|
|
|
|
-)
|
|
|
|
-
|
|
|
|
if(CATKIN_ENABLE_TESTING)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|
|
|
|
--
|
2017-11-22 12:48:51 +08:00
|
|
|
2.7.4
|
2017-04-10 15:47:54 +08:00
|
|
|
|