File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ find_package(Boost REQUIRED COMPONENTS thread )
13
13
find_package (Qt5 COMPONENTS Core Widgets REQUIRED )
14
14
set (QT_LIBRARIES Qt5::Widgets )
15
15
16
+ set (CMAKE_AUTOMOC ON )
17
+
16
18
add_definitions (-DQT_NO_KEYWORDS )
17
19
18
20
catkin_package (
@@ -35,19 +37,17 @@ link_directories(${catkin_LIBRARY_DIRS}
35
37
${OCTOMAP_LIBRARY_DIRS} )
36
38
37
39
38
- QT5_WRAP_CPP (MOC_FILES
39
- include /octomap_rviz_plugins/occupancy_grid_display.h
40
- include /octomap_rviz_plugins/occupancy_map_display.h
41
- OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED -DBOOST_LEXICAL_CAST_INCLUDED
42
- )
43
-
44
40
set (SOURCE_FILES
45
41
src/occupancy_grid_display.cpp
46
- src/occupancy_map_display.cpp
47
- ${MOC_FILES}
42
+ src/occupancy_map_display.cpp
43
+ )
44
+
45
+ set (HEADER_FILES
46
+ include /octomap_rviz_plugins/occupancy_grid_display.h
47
+ include /octomap_rviz_plugins/occupancy_map_display.h
48
48
)
49
49
50
- add_library (${PROJECT_NAME} MODULE ${SOURCE_FILES} )
50
+ add_library (${PROJECT_NAME} MODULE ${SOURCE_FILES} ${HEADER_FILES} )
51
51
target_link_libraries (${PROJECT_NAME} ${QT_LIBRARIES} ${Boost_LIBRARIES} ${OCTOMAP_LIBRARIES} ${catkin_LIBRARIES} )
52
52
target_compile_options (${PROJECT_NAME} PUBLIC "-Wno-register" ) # Avoid OGRE deprecaton warnings under C++17
53
53
You can’t perform that action at this time.
0 commit comments