Commit 334589a 1 parent b8716fc commit 334589a Copy full SHA for 334589a
File tree 5 files changed +13
-75
lines changed
5 files changed +13
-75
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,18 @@ cmake_minimum_required(VERSION 3.5)
2
2
project (xacro)
3
3
4
4
find_package (ament_cmake REQUIRED)
5
+ find_package (ament_cmake_python REQUIRED)
5
6
6
7
install (FILES scripts/completion.bash DESTINATION share/${PROJECT_NAME} /environment )
7
8
8
- ## The following manually installs the python package and the entry-point script
9
- ## Using ament_cmake, we cannot actually use setup.py to install these...
9
+ # install xacro python package and it's console_script entry-point script
10
+ ament_python_install_package( ${PROJECT_NAME} SCRIPTS_DESTINATION lib/ ${PROJECT_NAME} )
10
11
11
- # install xacro python package
12
- ament_python_install_package(xacro)
13
- # install main script
14
- install (PROGRAMS scripts/xacro DESTINATION bin)
15
- install (PROGRAMS scripts/xacro DESTINATION lib/ ${PROJECT_NAME} )
12
+ # install entry-point script(s) in bin as well
13
+ install (
14
+ DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /ament_cmake_python/ ${PROJECT_NAME} /scripts/
15
+ DESTINATION bin/
16
+ USE_SOURCE_PERMISSIONS )
16
17
17
18
if (BUILD_TESTING)
18
19
## run linters as defined in package.xml
Original file line number Diff line number Diff line change 20
20
<author >Robert Haschke</author >
21
21
22
22
<buildtool_depend >ament_cmake</buildtool_depend >
23
+ <buildtool_depend >ament_cmake_python</buildtool_depend >
24
+
23
25
<depend >ament_index_python</depend >
24
26
<depend >python3-yaml</depend >
25
27
<test_depend >ament_lint_auto</test_depend >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [options.entry_points]
2
+ console_scripts =
3
+ xacro = xacro:main
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments