Skip to content

Commit

Permalink
fix package.xml/CMakeLists.txt to supress catkin_lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Jun 23, 2023
1 parent 32aa299 commit 1e60647
Show file tree
Hide file tree
Showing 27 changed files with 55 additions and 56 deletions.
2 changes: 2 additions & 0 deletions 3rdparty/aques_talk/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<run_depend>nkf</run_depend>
<run_depend>sound_play</run_depend>

<test_depend>rostest</test_depend>

</package>


1 change: 0 additions & 1 deletion 3rdparty/assimp_devel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ else()
INCLUDE_DIRS ${CATKIN_DEVEL_PREFIX}/include/assimp_devel
LIBRARIES assimp_devel
EXPORTED_TARGETS libassimp_devel
SKIP_CMAKE_CONFIG_GENERATION
)
endif()
execute_process(COMMAND sed -i s@${${PROJECT_NAME}_VERSION}@3.0.1@ ${CATKIN_DEVEL_PREFIX}/lib/pkgconfig/assimp_devel.pc)
Expand Down
1 change: 0 additions & 1 deletion 3rdparty/libsiftfast/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ else()
INCLUDE_DIRS ${CATKIN_DEVEL_PREFIX}/include
LIBRARIES siftfast
EXPORTED_TARGETS libsiftfast
SKIP_CMAKE_CONFIG_GENERATION
)
endif()

Expand Down
1 change: 1 addition & 0 deletions bayesian_belief_networks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set(CATKIN_VERSION ${catkin_VERSION}) #this is used in setup.py
# Use configure_file because when installing package, this CATKIN_VERSION
# environmental variable is not available
configure_file(${PROJECT_SOURCE_DIR}/setup.py.in ${PROJECT_SOURCE_DIR}/setup.py)
#catkin_lint: ignore missing_file
catkin_python_setup()

add_message_files(DIRECTORY msg FILES Result.msg Observation.msg)
Expand Down
10 changes: 2 additions & 8 deletions dialogflow_task_executive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ endif()

find_package(catkin REQUIRED COMPONENTS
message_generation
std_msgs
actionlib_msgs
catkin_virtualenv
)

Expand All @@ -29,11 +27,7 @@ add_action_files(
DialogText.action
)

generate_messages(
DEPENDENCIES
std_msgs
actionlib_msgs
)
generate_messages()

catkin_package(
CATKIN_DEPENDS message_runtime
Expand Down Expand Up @@ -81,7 +75,7 @@ install(DIRECTORY launch
)

if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS roslaunch rostest)
find_package(roslaunch rostest REQUIRED)
roslaunch_add_file_check(launch)
if(NOT (gcc_dump_machine MATCHES "x86_64-.*" OR gcc_dump_machine MATCHES "aarch64-.*"))
message(WARNING "pip -i requirements.txt work only with i686, so skipping test for ${gcc_dump_machine}")
Expand Down
3 changes: 1 addition & 2 deletions dialogflow_task_executive/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
<buildtool_depend>catkin</buildtool_depend>
<build_depend>catkin_virtualenv</build_depend>
<build_depend>message_generation</build_depend>
<build_depend>actionlib_msgs</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>roslaunch</build_depend>
<run_depend>app_manager</run_depend>
<run_depend>message_runtime</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>speech_recognition_msgs</run_depend>
<run_depend>topic_tools</run_depend>
<!-- <run_depend>python-dialogflow-pip</run_depend> install via catkin_virtualenv -->
Expand Down
5 changes: 1 addition & 4 deletions gdrive_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ project(gdrive_ros)
find_package(catkin REQUIRED COMPONENTS
catkin_virtualenv REQUIRED
rospy
std_msgs
message_generation
)

Expand All @@ -17,8 +16,6 @@ add_service_files(
)

generate_messages(
DEPENDENCIES
std_msgs
)

catkin_package(
Expand Down Expand Up @@ -55,6 +52,6 @@ install(FILES requirements.txt
)

if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS rostest roslaunch)
find_package(rostest roslaunch REQUIRED)
roslaunch_add_file_check(launch/gdrive_server.launch)
endif()
1 change: 0 additions & 1 deletion gdrive_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<buildtool_depend>catkin</buildtool_depend>
<build_depend>rospy</build_depend>
<build_depend>message_generation</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>catkin_virtualenv</build_depend>

<run_depend>rospy</run_depend>
Expand Down
13 changes: 1 addition & 12 deletions google_chat_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ find_package(
catkin REQUIRED COMPONENTS
catkin_virtualenv REQUIRED
rospy
actionlib_msgs
std_msgs
message_generation
)

Expand All @@ -21,11 +19,7 @@ add_action_files(
SendMessage.action
)

generate_messages(
DEPENDENCIES
std_msgs
actionlib_msgs
)
generate_messages()

catkin_package()

Expand All @@ -49,11 +43,6 @@ catkin_install_python(
PROGRAMS ${PYTHON_SCRIPT_FILES}
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

# python requirements
install(FILES requirements.txt
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

# launch
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
Expand Down
4 changes: 2 additions & 2 deletions google_chat_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<license>BSD</license>

<buildtool_depend>catkin</buildtool_depend>
<buildtool_depend>python3-setuptools</buildtool_depend>
<buildtool_depend condition="$ROS_PYTHON_VERSION == 2">python-setuptools</buildtool_depend>
<buildtool_depend condition="$ROS_PYTHON_VERSION == 3">python3-setuptools</buildtool_depend>

<build_depend>message_generation</build_depend>
<build_depend>catkin_virtualenv</build_depend>

<exec_depend>message_runtime</exec_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>std_msgs</exec_depend>
<exec_depend>gdrive_ros</exec_depend>
<exec_depend>dialogflow_task_executive</exec_depend>

Expand Down
1 change: 1 addition & 0 deletions google_chat_ros/test/test_import.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
import unittest
import sys

Expand Down
1 change: 1 addition & 0 deletions jsk_ros_patch/collada_urdf_jsk_patch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ find_package(catkin REQUIRED)
catkin_package(CATKIN_DEPENDS collada_urdf)


#catkin_lint: ignore immutable_var
set(ENV{PKG_CONFIG_PATH} ${CATKIN_DEVEL_PREFIX}/lib/pkgconfig:$ENV{PKG_CONFIG_PATH})
add_custom_target(urdf_to_collada ALL DEPENDS ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_BIN_DESTINATION}/urdf_to_collada)
add_custom_command(OUTPUT ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_BIN_DESTINATION}/urdf_to_collada
Expand Down
4 changes: 3 additions & 1 deletion jsk_ros_patch/collada_urdf_jsk_patch/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
<build_depend>git</build_depend>
<build_depend condition="$ROS_PYTHON_VERSION == 2">python-catkin-tools</build_depend>
<build_depend condition="$ROS_PYTHON_VERSION == 3">python3-catkin-tools</build_depend>


<build_export_depend>collada_urdf</build_export_depend>

<exec_depend>collada_parser</exec_depend>
<exec_depend>collada_urdf</exec_depend>
<exec_depend>urdf</exec_depend>
Expand Down
2 changes: 2 additions & 0 deletions nfc_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<build_export_depend>message_generation</build_export_depend>
<exec_depend>message_runtime</exec_depend>

<test_depend>rostest</test_depend>

<export>
<pip_requirements>requirements.txt</pip_requirements>
</export>
Expand Down
4 changes: 1 addition & 3 deletions pgm_learner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ project(pgm_learner)

find_package(catkin REQUIRED COMPONENTS
message_generation
std_msgs
rospy
)

Expand Down Expand Up @@ -33,7 +32,6 @@ add_service_files(

generate_messages(
DEPENDENCIES
std_msgs
)

catkin_package()
Expand All @@ -47,7 +45,7 @@ install(
if(CATKIN_ENABLE_TESTING)
# python-libpgm-pip did not work with python3
if ("$ENV{ROS_PYTHON_VERSION}" STREQUAL "2")
find_package(catkin REQUIRED COMPONENTS rostest)
find_package(rostest REQUIRED)
add_rostest(test/test_discrete_bn.test)
add_rostest(test/test_lg_bn.test)
endif()
Expand Down
1 change: 1 addition & 0 deletions respeaker_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<exec_depend condition="$ROS_PYTHON_VERSION == 2">python-pyaudio</exec_depend>
<exec_depend condition="$ROS_PYTHON_VERSION == 3">python3-pyaudio</exec_depend>

<test_depend>rostest</test_depend>
<test_depend>jsk_tools</test_depend>

<export>
Expand Down
1 change: 0 additions & 1 deletion ros_google_cloud_language/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ generate_messages(
DEPENDENCIES
actionlib_msgs
diagnostic_msgs
std_msgs
)

catkin_package(
Expand Down
3 changes: 3 additions & 0 deletions ros_google_cloud_language/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
<exec_depend>message_runtime</exec_depend>
<exec_depend>rospy</exec_depend>

<depend>actionlib_msgs</depend>
<depend>diagnostic_msgs</depend>

<test_depend>rostest</test_depend>

<export>
<pip_requirements>requirements.txt</pip_requirements>
</export>
Expand Down
2 changes: 1 addition & 1 deletion ros_speech_recognition/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ install(FILES requirements.txt
)

if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS rostest roslaunch)
find_package(rostest roslaunch REQUIRED)
add_rostest(test/sample_ros_speech_recognition.test
DEPENDENCIES ${PROJECT_NAME}_generate_virtualenv
)
Expand Down
4 changes: 2 additions & 2 deletions rosping/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ install(DIRECTORY test
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS
)
if (NOT $ENV{ROS_DISTRO} STREQUAL "indigo")
if (CATKIN_ENABLE_TESTING AND (NOT $ENV{ROS_DISTRO} STREQUAL "indigo"))
add_rostest(test/test-rosping.test)
endif(NOT $ENV{ROS_DISTRO} STREQUAL "indigo")
endif(CATKIN_ENABLE_TESTING AND (NOT $ENV{ROS_DISTRO} STREQUAL "indigo"))
3 changes: 1 addition & 2 deletions rostwitter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ find_package(catkin REQUIRED COMPONENTS
dynamic_reconfigure
message_generation
rospy
std_msgs
mk
)

Expand All @@ -20,7 +19,7 @@ add_action_files(


generate_messages(
DEPENDENCIES actionlib_msgs std_msgs)
DEPENDENCIES actionlib_msgs)

generate_dynamic_reconfigure_options(
cfg/TweetImageServer.cfg
Expand Down
3 changes: 2 additions & 1 deletion rostwitter/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<build_depend>actionlib_msgs</build_depend>
<build_depend>dynamic_reconfigure</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>message_generation</build_depend>
<build_depend>mk</build_depend>
<build_depend>git</build_depend>
Expand All @@ -31,6 +30,8 @@
<exec_depend condition="$ROS_PYTHON_VERSION == 2">python-simplejson</exec_depend>
<exec_depend condition="$ROS_PYTHON_VERSION == 3">python3-simplejson</exec_depend>

<build_export_depend>actionlib_msgs</build_export_depend>

<test_depend>rostest</test_depend>

<export>
Expand Down
2 changes: 2 additions & 0 deletions sesame_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

<exec_depend>message_runtime</exec_depend>

<test_depend>rostest</test_depend>

<export>
<pip_requirements>requirements.txt</pip_requirements>
</export>
Expand Down
2 changes: 0 additions & 2 deletions switchbot_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ find_package(
catkin REQUIRED COMPONENTS
message_generation
actionlib_msgs
std_msgs
)

catkin_python_setup()
Expand All @@ -24,7 +23,6 @@ add_action_files(
generate_messages(
DEPENDENCIES
actionlib_msgs
std_msgs
)

catkin_package()
Expand Down
4 changes: 2 additions & 2 deletions switchbot_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
<build_depend>actionlib</build_depend>
<build_depend>actionlib_msgs</build_depend>
<build_depend>message_generation</build_depend>
<build_depend>std_msgs</build_depend>

<exec_depend condition="$ROS_PYTHON_VERSION == 2">python-requests</exec_depend>
<exec_depend condition="$ROS_PYTHON_VERSION == 3">python3-requests</exec_depend>
<exec_depend>actionlib</exec_depend>
<exec_depend>actionlib_msgs</exec_depend>
<exec_depend>message_runtime</exec_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>std_msgs</exec_depend>

<build_export_depend>actionlib_msgs</build_export_depend>

<export>
</export>
Expand Down
20 changes: 10 additions & 10 deletions zdepth_image_transport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ find_package(catkin REQUIRED
)

if("$ENV{ROS_DISTRO}" STRGREATER "kinetic")
find_library(zdepth_LIB zdepth PATH_SUFFIXES zdepth)
find_library(zstd_LIB zstd PATH_SUFFIXES zdepth)
set(zdepth_LIBRARIES ${zdepth_LIB} ${zstd_LIB})
find_file(zdepth_INCLUDE zdepth.hpp PATH_SUFFIXES zdepth)
get_filename_component(zdepth_PATH ${zdepth_INCLUDE} DIRECTORY)
get_filename_component(zdepth_INCLUDE_DIRS ${zdepth_PATH} DIRECTORY)
find_library(${PROJECT_NAME}_zdepth_LIB zdepth PATH_SUFFIXES zdepth)
find_library(${PROJECT_NAME}_zstd_LIB zstd PATH_SUFFIXES zdepth)
set(${PROJECT_NAME}_zdepth_LIBRARIES ${${PROJECT_NAME}_zdepth_LIB} ${${PROJECT_NAME}_zstd_LIB})
find_file(${PROJECT_NAME}_zdepth_INCLUDE zdepth.hpp PATH_SUFFIXES zdepth)
get_filename_component(${PROJECT_NAME}_zdepth_PATH ${${PROJECT_NAME}_zdepth_INCLUDE} DIRECTORY)
get_filename_component(${PROJECT_NAME}_zdepth_INCLUDE_DIRS ${${PROJECT_NAME}_zdepth_PATH} DIRECTORY)
endif()

add_message_files(
Expand All @@ -40,17 +40,17 @@ catkin_package(
sensor_msgs
std_msgs
DEPENDS
zdepth
${PROJECT_NAME}_zdepth
)

if("$ENV{ROS_DISTRO}" STRGREATER "kinetic")
include_directories(include ${catkin_INCLUDE_DIRS} ${zdepth_INCLUDE_DIRS})
include_directories(include ${catkin_INCLUDE_DIRS} ${${PROJECT_NAME}_zdepth_INCLUDE_DIRS})

add_executable(zdepth_test src/test/zdepth_test.cpp)
target_link_libraries(zdepth_test ${catkin_LIBRARIES} ${zdepth_LIBRARIES})
target_link_libraries(zdepth_test ${catkin_LIBRARIES} ${${PROJECT_NAME}_zdepth_LIBRARIES})

add_library(${PROJECT_NAME} src/manifest.cpp src/zdepth_publisher.cpp src/zdepth_subscriber.cpp)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${zdepth_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${${PROJECT_NAME}_zdepth_LIBRARIES})
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_generate_messages_cpp)

install(TARGETS zdepth_test
Expand Down
Loading

0 comments on commit 1e60647

Please sign in to comment.