only search for QVTK if VTK5 is found (not for VTK6)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1616 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-07-26 05:23:24 +00:00
parent 28787d583b
commit 8fe1b1d589
2 changed files with 8 additions and 3 deletions

View File

@@ -83,7 +83,6 @@ SET(INCLUDE_DIRS
${OpenCV_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR} # for qt ui generated in binary dir
${PCL_INCLUDE_DIRS}
${QVTK_INCLUDE_DIR}
)
INCLUDE(${QT_USE_FILE})
@@ -92,9 +91,13 @@ SET(LIBRARIES
${QT_LIBRARIES}
${OpenCV_LIBS}
${PCL_LIBRARIES}
${QVTK_LIBRARY}
)
IF(VTK_USE_QVTK)
SET(INCLUDE_DIRS ${INCLUDE_DIRS} ${QVTK_INCLUDE_DIR})
SET(LIBRARIES ${LIBRARIES} ${QVTK_LIBRARY})
ENDIF(VTK_USE_QVTK)
#include files
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})