Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
  • Loading branch information
ahcorde committed Jun 28, 2024
1 parent eb20e1a commit 0fee1fa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions turtlesim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"srv/TeleportAbsolute.srv"
"srv/TeleportRelative.srv")

set (CMAKE_AUTOMOC ON)

rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")

if (${QT_VERSION_MAJOR} GREATER "5")
qt_standard_project_setup()
qt_wrap_cpp(turtlesim_node_MOCS include/turtlesim/turtle_frame.hpp)
else()
qt5_wrap_cpp(turtlesim_node_MOCS include/turtlesim/turtle_frame.hpp)
endif()

add_executable(turtlesim_node
src/turtlesim.cpp
src/turtle.cpp
Expand Down

0 comments on commit 0fee1fa

Please sign in to comment.