From 48f0a66966fd1652cf480823dded1458d2ff646e Mon Sep 17 00:00:00 2001 From: PINTO <33194443+PINTO0309@users.noreply.github.com> Date: Thu, 3 May 2018 01:16:19 +0900 Subject: [PATCH] #49 --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a5f2248..715e3c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,17 @@ find_package(catkin REQUIRED COMPONENTS roscpp rosconsole sensor_msgs + message_generation +) + +add_service_files( + FILES + StartMotor.srv +) + +generate_messages( + DEPENDENCIES + std_msgs ) include_directories( @@ -24,6 +35,7 @@ include_directories( catkin_package() add_executable(rplidarNode src/node.cpp ${RPLIDAR_SDK_SRC}) +add_dependencies(rplidarNode ${${PROJECT_NAME}_EXPORTED_TARGETS}) target_link_libraries(rplidarNode ${catkin_LIBRARIES}) add_executable(rplidarNodeClient src/client.cpp)