ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How to add Python Modules into catkin libraries so they can be imported by other packages

asked 2015-02-05 21:51:35 -0600

Jarvis gravatar image


I want to create some python modules which are common for multiple ros packages. Can anyone guide me on how to list them in CMakeLists.txt file so they get insatlled in lib/python2.7/dist-packages directory? So far I have tried adding following lines

 add_library(python_module_library scripts/

This is giving me CMake Error as:

 CMake Error: CMake can not determine linker language for target: python_module_library
 CMake Error: Cannot determine link language for target "python_module_library".

Any Ideas?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-06 02:51:41 -0600

gvdhoorn gravatar image
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-02-05 21:51:35 -0600

Seen: 1,174 times

Last updated: Feb 06 '15