Fixed WITH_QT=OFF (to not build with Qt even if any dependency included it)

This commit is contained in:
matlabbe
2024-06-15 14:21:51 -07:00
parent c58fffe56d
commit 28fd696c18
3 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
set(LIBRARIES rtabmap_core)
IF(QT4_FOUND OR Qt5_FOUND)
IF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND))
ADD_DEFINITIONS("-DWITH_QT")
set(LIBRARIES ${LIBRARIES} rtabmap_gui)
ENDIF(QT4_FOUND OR Qt5_FOUND)
ENDIF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND))
ADD_EXECUTABLE(report main.cpp)