Skip to content

Commit a2b9f5e

Browse files
mehditlililuator
authored andcommitted
Add install commands and __init__.py (#2)
Add install commands to CMakeLists.txt and add __init__.py.
1 parent 25766e7 commit a2b9f5e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ find_package(PythonLibs 2.7 REQUIRED) # sets ${PYTHON_INCLUDE_DIRS}
1616
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
1717
catkin_python_setup() # this sets up the path /devel/lib/python2.7/dist-packages/boostpy_test
1818

19-
2019
###################################
2120
## catkin specific configuration ##
2221
###################################
@@ -33,6 +32,9 @@ catkin_package(
3332
# DEPENDS system_lib
3433
)
3534

35+
catkin_install_python(PROGRAMS scripts/use_cpplib.py
36+
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
37+
3638
###########
3739
## Build ##
3840
###########
@@ -59,4 +61,11 @@ set_target_properties(mycpplib PROPERTIES
5961
target_link_libraries(mycpplib
6062
${catkin_LIBRARIES}
6163
${Boost_LIBRARIES}
64+
6265
)
66+
67+
install(TARGETS mycpplib
68+
ARCHIVE DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION}
69+
LIBRARY DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION}
70+
)
71+

src/boost_python_catkin_example/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)