Skip to content

Commit

Permalink
Cleanup cmakelists and build with release and debug symbols by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Flova committed Jan 6, 2025
1 parent 926c663 commit 43327ab
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 34 deletions.
1 change: 1 addition & 0 deletions bitbots_misc/bitbots_basler_camera/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

<author email="info@bit-bots.de">Hamburg Bit-Bots</author>

<depend>backward_ros</depend>
<depend>bitbots_docs</depend>
<depend>camera_info_manager</depend>
<depend>cv_bridge</depend>
Expand Down
12 changes: 6 additions & 6 deletions bitbots_misc/bitbots_extrinsic_calibration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebug)
endif()

find_package(ament_cmake REQUIRED)
find_package(backward_ros REQUIRED)
find_package(bitbots_docs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(rclcpp REQUIRED)
find_package(ament_cmake REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(rot_conv REQUIRED)
find_package(std_msgs REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(bitbots_docs REQUIRED)
find_package(tf2 REQUIRED)
find_package(rot_conv REQUIRED)
find_package(backward_ros REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(tf2_ros REQUIRED)

add_compile_options(-Wall -Werror -Wno-unused)

Expand Down
8 changes: 4 additions & 4 deletions bitbots_misc/bitbots_extrinsic_calibration/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
<maintainer email="info@bit-bots.de">Hamburg Bit-Bots</maintainer>

<license>MIT</license>

<author email="florian.vahl@uni-hamburg.de">Florian Vahl</author>

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>backward_ros</depend>
<depend>bitbots_docs</depend>
<depend>rot_conv</depend>
<depend>std_msgs</depend>
<depend>tf2</depend>
<depend>tf2_ros</depend>
<depend>rot_conv</depend>
<depend>backward_ros</depend>
<depend>tf2</depend>

<export>
<bitbots_documentation>
Expand Down
3 changes: 2 additions & 1 deletion bitbots_misc/bitbots_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
endif()

find_package(bitbots_docs REQUIRED)
find_package(backward_ros REQUIRED)
find_package(ament_cmake REQUIRED)
find_package(ament_cmake_python REQUIRED)
find_package(rclcpp REQUIRED)
Expand All @@ -31,7 +32,7 @@ add_compile_options(-Wall -Werror -Wno-unused -pedantic -Wextra -fPIC)
add_library(${PROJECT_NAME} src/utils.cpp)

# Add dependencies to cpp library
ament_target_dependencies(${PROJECT_NAME} rclcpp tf2_ros)
ament_target_dependencies(${PROJECT_NAME} rclcpp tf2_ros backward_ros)

ament_export_dependencies(rclcpp)
ament_export_include_directories(${INCLUDE_DIRS})
Expand Down
3 changes: 2 additions & 1 deletion bitbots_misc/bitbots_utils/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
<maintainer email="info@bit-bots.de">Hamburg Bit-Bots</maintainer>

<license>MIT</license>

<author email="info@bit-bots.de">Hamburg Bit-Bots</author>

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>backward_ros</depend>
<depend>bitbots_docs</depend>
<depend>python3-yaml</depend>
<depend>python3-transforms3d</depend>
Expand Down
4 changes: 2 additions & 2 deletions bitbots_motion/bitbots_dynamic_kick/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
endif()

find_package(ament_cmake REQUIRED)
find_package(bitbots_docs REQUIRED)
find_package(backward_ros REQUIRED)
find_package(biped_interfaces REQUIRED)
find_package(bitbots_docs REQUIRED)
find_package(bitbots_msgs REQUIRED)
find_package(bitbots_splines REQUIRED)
find_package(control_msgs REQUIRED)
Expand All @@ -30,7 +31,6 @@ find_package(tf2 REQUIRED)
find_package(tf2_eigen REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(backward_ros REQUIRED)

find_package(PythonLibs COMPONENTS Interpreter Development)

Expand Down
2 changes: 0 additions & 2 deletions bitbots_motion/bitbots_head_mover/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.8)
project(bitbots_head_mover)


# Build with release optimizations and debug symbols by default
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebug)
Expand All @@ -18,7 +17,6 @@ find_package(bio_ik REQUIRED)
find_package(bio_ik_msgs REQUIRED)
find_package(bitbots_msgs REQUIRED)
find_package(generate_parameter_library REQUIRED)
find_package(bitbots_msgs REQUIRED)
find_package(moveit_core REQUIRED)
find_package(moveit_msgs REQUIRED)
find_package(moveit_ros_planning REQUIRED)
Expand Down
8 changes: 4 additions & 4 deletions bitbots_motion/bitbots_moveit_bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ endif()

set(PYBIND11_PYTHON_VERSION 3)
set(PYBIND11_FINDPYTHON ON)
find_package(bitbots_docs REQUIRED)
find_package(ament_cmake REQUIRED)
find_package(backward_ros REQUIRED)
find_package(bio_ik REQUIRED)
find_package(bio_ik_msgs REQUIRED)
find_package(bitbots_docs REQUIRED)
find_package(moveit_core REQUIRED)
find_package(moveit_msgs REQUIRED)
find_package(moveit_ros_planning_interface REQUIRED)
find_package(moveit_ros_planning REQUIRED)
find_package(moveit_ros_planning_interface REQUIRED)
find_package(pybind11 REQUIRED)
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
find_package(rclcpp REQUIRED)
find_package(ros2_python_extension)
find_package(tf2 REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(tf2_kdl REQUIRED)
find_package(rclcpp REQUIRED)
find_package(tf2_ros REQUIRED)

add_compile_options(-Wall -Wno-unused)

Expand Down
10 changes: 5 additions & 5 deletions bitbots_motion/bitbots_moveit_bindings/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
<license>MIT</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<depend>bitbots_docs</depend>
<depend>bio_ik</depend>
<depend>backward_ros</depend>
<depend>bio_ik_msgs</depend>
<depend>bio_ik</depend>
<depend>bitbots_docs</depend>
<depend>moveit_core</depend>
<depend>moveit_ros_planning</depend>
<depend>moveit_ros_planning_interface</depend>
<depend>moveit_ros_planning</depend>
<depend>pybind11_vendor</depend>
<depend>ros2_python_extension</depend>
<export>

<build_type>ament_cmake</build_type>
<build_type>ament_cmake</build_type>
</export>
</package>
10 changes: 6 additions & 4 deletions bitbots_motion/bitbots_splines/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
endif()

find_package(ament_cmake REQUIRED)
find_package(backward_ros REQUIRED)
find_package(bitbots_docs REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(moveit_core REQUIRED)
find_package(moveit_ros_planning REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)

set(INCLUDE_DIRS include)
include_directories(${INCLUDE_DIRS})
Expand All @@ -43,6 +44,7 @@ add_library(${PROJECT_NAME} SHARED ${SOURCES})
ament_target_dependencies(
${PROJECT_NAME}
ament_cmake
backward_ros
bitbots_docs
rclcpp
std_msgs
Expand Down
11 changes: 6 additions & 5 deletions bitbots_motion/bitbots_splines/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@


<buildtool_depend>ament_cmake</buildtool_depend>
<depend>std_msgs</depend>
<depend>geometry_msgs</depend>
<depend>backward_ros</depend>
<depend>bitbots_docs</depend>
<depend>rclcpp</depend>
<depend>tf2_geometry_msgs</depend>
<depend>eigen</depend>
<depend>geometry_msgs</depend>
<depend>moveit_core</depend>
<depend>moveit_ros_planning</depend>
<depend>eigen</depend>
<depend>python3-matplotlib</depend>
<depend>rclcpp</depend>
<depend>std_msgs</depend>
<depend>tf2_geometry_msgs</depend>

<export>
<bitbots_documentation>
Expand Down
3 changes: 3 additions & 0 deletions bitbots_navigation/bitbots_odometry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
endif()

find_package(ament_cmake REQUIRED)
find_package(backward_ros REQUIRED)
find_package(biped_interfaces REQUIRED)
find_package(bitbots_docs REQUIRED)
find_package(bitbots_utils REQUIRED)
Expand Down Expand Up @@ -44,6 +45,7 @@ target_link_libraries(motion_odometry rclcpp::rclcpp odometry_parameters)
ament_target_dependencies(
motion_odometry
ament_cmake
backward_ros
biped_interfaces
bitbots_docs
bitbots_utils
Expand All @@ -62,6 +64,7 @@ ament_target_dependencies(
ament_target_dependencies(
odometry_fuser
ament_cmake
backward_ros
biped_interfaces
bitbots_docs
bitbots_utils
Expand Down
1 change: 1 addition & 0 deletions bitbots_navigation/bitbots_odometry/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<author email="jasper@bit-bots.de">Jasper Güldenstein</author>

<buildtool_depend>ament_cmake</buildtool_depend>
<depend>backward_ros</depend>
<depend>biped_interfaces</depend>
<depend>bitbots_docs</depend>
<depend>bitbots_utils</depend>
Expand Down

0 comments on commit 43327ab

Please sign in to comment.