We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1702d46 commit b4d8dcfCopy full SHA for b4d8dcf
turtlesim/CMakeLists.txt
@@ -23,9 +23,12 @@ find_package(turtlesim_msgs REQUIRED)
23
24
include_directories(include ${Qt${QT_VERSION_MAJOR}Widgets_INCLUDE_DIRS})
25
26
-set (CMAKE_AUTOMOC ON)
27
-
28
-# 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)
29
+else()
30
+ qt5_wrap_cpp(turtlesim_node_MOCS include/turtlesim/turtle_frame.hpp)
31
+endif()
32
33
add_executable(turtlesim_node
34
src/turtlesim.cpp
0 commit comments