mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Fixed cmake erros on system with Qt4
This commit is contained in:
+1
-1
@@ -172,7 +172,7 @@ ENDIF(ZLIB_FOUND)
|
|||||||
IF(WITH_QT)
|
IF(WITH_QT)
|
||||||
# If Qt is here, the GUI will be built
|
# If Qt is here, the GUI will be built
|
||||||
# look for Qt5 before Qt4
|
# look for Qt5 before Qt4
|
||||||
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg)
|
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg QUIET)
|
||||||
IF(NOT Qt5_FOUND)
|
IF(NOT Qt5_FOUND)
|
||||||
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
||||||
ENDIF(NOT Qt5_FOUND)
|
ENDIF(NOT Qt5_FOUND)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ else()
|
|||||||
FIND_PACKAGE(PCL 1.7 REQUIRED)
|
FIND_PACKAGE(PCL 1.7 REQUIRED)
|
||||||
|
|
||||||
# Find Qt5 first
|
# Find Qt5 first
|
||||||
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg)
|
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg QUIET)
|
||||||
IF(NOT Qt5_FOUND)
|
IF(NOT Qt5_FOUND)
|
||||||
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
||||||
ENDIF(NOT Qt5_FOUND)
|
ENDIF(NOT Qt5_FOUND)
|
||||||
@@ -50,7 +50,7 @@ SET(LIBRARIES
|
|||||||
|
|
||||||
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
||||||
|
|
||||||
IF("${MY_QT_VERSION}" STREQUAL "4")
|
IF(QT4_FOUND)
|
||||||
QT4_WRAP_CPP(moc_srcs MapBuilder.h)
|
QT4_WRAP_CPP(moc_srcs MapBuilder.h)
|
||||||
ELSE()
|
ELSE()
|
||||||
QT5_WRAP_CPP(moc_srcs MapBuilder.h)
|
QT5_WRAP_CPP(moc_srcs MapBuilder.h)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ else()
|
|||||||
FIND_PACKAGE(PCL 1.7 REQUIRED)
|
FIND_PACKAGE(PCL 1.7 REQUIRED)
|
||||||
|
|
||||||
# Find Qt5 first
|
# Find Qt5 first
|
||||||
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg)
|
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg QUIET)
|
||||||
IF(NOT Qt5_FOUND)
|
IF(NOT Qt5_FOUND)
|
||||||
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
||||||
ENDIF(NOT Qt5_FOUND)
|
ENDIF(NOT Qt5_FOUND)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ else()
|
|||||||
FIND_PACKAGE(PCL 1.7 REQUIRED)
|
FIND_PACKAGE(PCL 1.7 REQUIRED)
|
||||||
|
|
||||||
# Find Qt5 first
|
# Find Qt5 first
|
||||||
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg)
|
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui Svg QUIET)
|
||||||
IF(NOT Qt5_FOUND)
|
IF(NOT Qt5_FOUND)
|
||||||
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtSvg)
|
||||||
ENDIF(NOT Qt5_FOUND)
|
ENDIF(NOT Qt5_FOUND)
|
||||||
@@ -50,7 +50,7 @@ SET(LIBRARIES
|
|||||||
|
|
||||||
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
||||||
|
|
||||||
IF("${MY_QT_VERSION}" STREQUAL "4")
|
IF(QT4_FOUND)
|
||||||
QT4_WRAP_CPP(moc_srcs MapBuilder.h MapBuilderWifi.h)
|
QT4_WRAP_CPP(moc_srcs MapBuilder.h MapBuilderWifi.h)
|
||||||
ELSE()
|
ELSE()
|
||||||
QT5_WRAP_CPP(moc_srcs MapBuilder.h MapBuilderWifi.h)
|
QT5_WRAP_CPP(moc_srcs MapBuilder.h MapBuilderWifi.h)
|
||||||
|
|||||||
Reference in New Issue
Block a user