RTABMapConfig.cmake: added find VTK if vtkGUISupportQt target is required

This commit is contained in:
matlabbe
2016-09-29 12:40:51 -04:00
parent 7f0c49b14d
commit 4d6cfbba20
2 changed files with 7 additions and 1 deletions

View File

@@ -62,6 +62,9 @@ if(@CONF_WITH_GUI@)
endif(@CONF_WITH_GUI@)
# Dependencies
if(@CONF_VTK_QT@)
find_package(VTK COMPONENTS vtkGUISupportQt NO_MODULE) # to define vtkGUISupportQt target
endif(@CONF_VTK_QT@)
set(RTABMap_LIBRARIES ${RTABMap_LIBRARIES} @CONF_DEPENDENCIES@)
#backward compatibilities