Skip to content

Commit

Permalink
examples: switch to cmake for symlink-install
Browse files Browse the repository at this point in the history
Workaround for colcon/colcon-core#407

Fixes #87
  • Loading branch information
whoenig committed Nov 15, 2022
1 parent ad50009 commit b8d46a0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 40 deletions.
19 changes: 19 additions & 0 deletions crazyflie_examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.8)
project(crazyflie_examples)

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_python REQUIRED)

# Install Python modules
ament_python_install_package(${PROJECT_NAME} SCRIPTS_DESTINATION lib/${PROJECT_NAME})

# Install launch and config files.
install(DIRECTORY
config
data
launch
DESTINATION share/${PROJECT_NAME}/
)

ament_package()
5 changes: 4 additions & 1 deletion crazyflie_examples/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<maintainer email="hoenig@tu-berlin.de">Wolfgang Hönig, Kimberly McGuire</maintainer>
<license>MIT</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_python</buildtool_depend>

<depend>rclpy</depend>
<depend>crazyflie_py</depend>

Expand All @@ -16,6 +19,6 @@
<test_depend>python3-pytest</test_depend>

<export>
<build_type>ament_python</build_type>
<build_type>ament_cmake</build_type>
</export>
</package>
10 changes: 6 additions & 4 deletions crazyflie_examples/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[develop]
script_dir=$base/lib/crazyflie_examples
[install]
install_scripts=$base/lib/crazyflie_examples
[options.entry_points]
console_scripts =
hello_world = crazyflie_examples.hello_world:main
nice_hover = crazyflie_examples.nice_hover:main
figure8 = crazyflie_examples.figure8:main
cmd_full_state = crazyflie_examples.cmd_full_state:main
35 changes: 0 additions & 35 deletions crazyflie_examples/setup.py

This file was deleted.

0 comments on commit b8d46a0

Please sign in to comment.