Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed Jun 27, 2024
1 parent 1702d46 commit b4d8dcf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions turtlesim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ find_package(turtlesim_msgs REQUIRED)

include_directories(include ${Qt${QT_VERSION_MAJOR}Widgets_INCLUDE_DIRS})

set (CMAKE_AUTOMOC ON)

# qt_wrap_cpp(turtlesim_node_MOCS include/turtlesim/turtle_frame.hpp)
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
Expand Down

0 comments on commit b4d8dcf

Please sign in to comment.