Skip to content

Commit bbf658b

Browse files
simonschmeisserSimon Schmeisser
authored andcommitted
add header files as library source for automoc to link properly
1 parent dba0ddf commit bbf658b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ set(SOURCE_FILES
4242
src/occupancy_map_display.cpp
4343
)
4444

45-
add_library(${PROJECT_NAME} MODULE ${SOURCE_FILES})
45+
set(HEADER_FILES
46+
include/octomap_rviz_plugins/occupancy_grid_display.h
47+
include/octomap_rviz_plugins/occupancy_map_display.h
48+
)
49+
50+
add_library(${PROJECT_NAME} MODULE ${SOURCE_FILES} ${HEADER_FILES})
4651
target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES} ${Boost_LIBRARIES} ${OCTOMAP_LIBRARIES} ${catkin_LIBRARIES})
4752
target_compile_options(${PROJECT_NAME} PUBLIC "-Wno-register") # Avoid OGRE deprecaton warnings under C++17
4853

0 commit comments

Comments
 (0)