Skip to content

Commit 0fee1fa

Browse files
committed
Fixed build
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
1 parent eb20e1a commit 0fee1fa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

turtlesim/CMakeLists.txt

+7-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,15 @@ rosidl_generate_interfaces(${PROJECT_NAME}
3434
"srv/TeleportAbsolute.srv"
3535
"srv/TeleportRelative.srv")
3636

37-
set (CMAKE_AUTOMOC ON)
38-
3937
rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
4038

39+
if (${QT_VERSION_MAJOR} GREATER "5")
40+
qt_standard_project_setup()
41+
qt_wrap_cpp(turtlesim_node_MOCS include/turtlesim/turtle_frame.hpp)
42+
else()
43+
qt5_wrap_cpp(turtlesim_node_MOCS include/turtlesim/turtle_frame.hpp)
44+
endif()
45+
4146
add_executable(turtlesim_node
4247
src/turtlesim.cpp
4348
src/turtle.cpp

0 commit comments

Comments
 (0)