2011-06-05 14:45:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
### Qt Gui stuff ###
|
|
|
|
|
SET(headers_ui
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/MainWindow.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/PreferencesDialog.h
|
2012-12-11 18:05:05 +00:00
|
|
|
../include/${PROJECT_PREFIX}/gui/DatabaseViewer.h
|
2017-10-20 12:09:34 +02:00
|
|
|
../include/${PROJECT_PREFIX}/gui/AboutDialog.h
|
2015-08-25 10:32:27 -04:00
|
|
|
../include/${PROJECT_PREFIX}/gui/ConsoleWidget.h
|
2012-06-24 17:19:34 +00:00
|
|
|
../include/${PROJECT_PREFIX}/gui/ImageView.h
|
2015-08-25 10:32:27 -04:00
|
|
|
../include/${PROJECT_PREFIX}/gui/PdfPlot.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/StatsToolBox.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/ProgressDialog.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/utilite/UPlot.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/utilite/UImageView.h
|
2013-12-11 00:12:44 +00:00
|
|
|
../include/${PROJECT_PREFIX}/gui/CloudViewer.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/OdometryViewer.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/LoopClosureViewer.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/DataRecorder.h
|
2015-04-06 00:28:04 -04:00
|
|
|
../include/${PROJECT_PREFIX}/gui/CameraViewer.h
|
2014-07-22 22:22:59 +00:00
|
|
|
../include/${PROJECT_PREFIX}/gui/CalibrationDialog.h
|
2017-10-20 12:09:34 +02:00
|
|
|
../include/${PROJECT_PREFIX}/gui/ExportDialog.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/PostProcessingDialog.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/ExportCloudsDialog.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/ExportBundlerDialog.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/MapVisibilityWidget.h
|
2015-08-25 10:32:27 -04:00
|
|
|
../include/${PROJECT_PREFIX}/gui/GraphViewer.h
|
2017-10-20 12:09:34 +02:00
|
|
|
../include/${PROJECT_PREFIX}/gui/CreateSimpleCalibrationDialog.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/ParametersToolBox.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/DepthCalibrationDialog.h
|
2019-10-18 12:22:51 -04:00
|
|
|
../include/${PROJECT_PREFIX}/gui/EditConstraintDialog.h
|
2016-11-14 19:54:31 -05:00
|
|
|
./3rdParty/QMultiComboBox.h
|
2017-10-20 12:09:34 +02:00
|
|
|
../include/${PROJECT_PREFIX}/gui/TexturingState.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/RecoveryState.h
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/EditDepthArea.h
|
2019-03-16 15:27:49 -04:00
|
|
|
../include/${PROJECT_PREFIX}/gui/EditMapArea.h
|
2011-06-05 14:45:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(uis
|
|
|
|
|
./ui/mainWindow.ui
|
|
|
|
|
./ui/preferencesDialog.ui
|
|
|
|
|
./ui/aboutDialog.ui
|
|
|
|
|
./ui/consoleWidget.ui
|
2012-12-11 18:05:05 +00:00
|
|
|
./ui/DatabaseViewer.ui
|
2013-12-11 00:12:44 +00:00
|
|
|
./ui/loopClosureViewer.ui
|
2014-01-22 19:49:28 +00:00
|
|
|
./ui/exportDialog.ui
|
2014-10-30 14:43:43 +00:00
|
|
|
./ui/postProcessingDialog.ui
|
2014-07-29 00:52:35 +00:00
|
|
|
./ui/exportCloudsDialog.ui
|
2014-07-22 22:22:59 +00:00
|
|
|
./ui/calibrationDialog.ui
|
2015-07-30 14:17:29 -04:00
|
|
|
./ui/createSimpleCalibrationDialog.ui
|
2016-09-19 14:01:06 -04:00
|
|
|
./ui/depthCalibrationDialog.ui
|
2017-08-07 16:31:49 -04:00
|
|
|
./ui/exportBundlerDialog.ui
|
2019-10-18 12:22:51 -04:00
|
|
|
./ui/editConstraintDialog.ui
|
2011-06-05 14:45:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(qrc
|
|
|
|
|
./GuiLib.qrc
|
|
|
|
|
)
|
|
|
|
|
|
2016-05-04 16:45:19 -04:00
|
|
|
IF(QT4_FOUND)
|
2015-03-16 19:51:22 +00:00
|
|
|
# generate rules for building source files from the resources
|
|
|
|
|
QT4_ADD_RESOURCES(srcs_qrc ${qrc})
|
2011-06-05 14:45:39 +00:00
|
|
|
|
2015-03-16 19:51:22 +00:00
|
|
|
#Generate .h files from the .ui files
|
|
|
|
|
QT4_WRAP_UI(moc_uis ${uis})
|
2011-06-05 14:45:39 +00:00
|
|
|
|
2015-03-16 19:51:22 +00:00
|
|
|
#This will generate moc_* for Qt
|
|
|
|
|
QT4_WRAP_CPP(moc_srcs ${headers_ui})
|
|
|
|
|
### Qt Gui stuff end###
|
|
|
|
|
ELSE()
|
|
|
|
|
QT5_ADD_RESOURCES(srcs_qrc ${qrc})
|
|
|
|
|
QT5_WRAP_UI(moc_uis ${uis})
|
|
|
|
|
QT5_WRAP_CPP(moc_srcs ${headers_ui})
|
|
|
|
|
ENDIF()
|
2011-06-05 14:45:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
SET(SRC_FILES
|
|
|
|
|
./MainWindow.cpp
|
|
|
|
|
./PreferencesDialog.cpp
|
|
|
|
|
./KeypointItem.cpp
|
|
|
|
|
./ImageView.cpp
|
|
|
|
|
./PdfPlot.cpp
|
|
|
|
|
./StatsToolBox.cpp
|
2015-08-25 10:32:27 -04:00
|
|
|
./ProgressDialog.cpp
|
2011-06-05 14:45:39 +00:00
|
|
|
./AboutDialog.cpp
|
|
|
|
|
./ConsoleWidget.cpp
|
2012-12-11 18:05:05 +00:00
|
|
|
./DatabaseViewer.cpp
|
2013-04-30 20:16:01 +00:00
|
|
|
./utilite/UPlot.cpp
|
2013-12-11 00:12:44 +00:00
|
|
|
./CloudViewer.cpp
|
2018-08-21 16:11:05 -04:00
|
|
|
./CloudViewerCellPicker.cpp
|
|
|
|
|
./CloudViewerInteractorStyle.cpp
|
2013-12-11 00:12:44 +00:00
|
|
|
./OdometryViewer.cpp
|
|
|
|
|
./LoopClosureViewer.cpp
|
|
|
|
|
./DataRecorder.cpp
|
2015-04-06 00:28:04 -04:00
|
|
|
./CameraViewer.cpp
|
2014-07-22 22:22:59 +00:00
|
|
|
./CalibrationDialog.cpp
|
2014-01-22 19:49:28 +00:00
|
|
|
./ExportDialog.cpp
|
2017-08-07 16:31:49 -04:00
|
|
|
./ExportBundlerDialog.cpp
|
2014-10-30 14:43:43 +00:00
|
|
|
./PostProcessingDialog.cpp
|
2014-07-29 00:52:35 +00:00
|
|
|
./ExportCloudsDialog.cpp
|
2019-10-18 12:22:51 -04:00
|
|
|
./EditConstraintDialog.cpp
|
2014-01-22 19:49:28 +00:00
|
|
|
./MapVisibilityWidget.cpp
|
2014-02-11 23:04:22 +00:00
|
|
|
./GraphViewer.cpp
|
2017-03-30 15:33:48 -04:00
|
|
|
./EditDepthArea.cpp
|
2019-03-16 15:27:49 -04:00
|
|
|
./EditMapArea.cpp
|
2015-07-30 14:17:29 -04:00
|
|
|
./CreateSimpleCalibrationDialog.cpp
|
2015-12-17 14:13:19 -05:00
|
|
|
./ParametersToolBox.cpp
|
2016-09-19 14:01:06 -04:00
|
|
|
./DepthCalibrationDialog.cpp
|
2016-11-14 19:54:31 -05:00
|
|
|
./3rdParty/QMultiComboBox.cpp
|
2017-01-30 21:23:56 -05:00
|
|
|
./opencv/vtkImageMatSource.cpp
|
2016-09-19 14:01:06 -04:00
|
|
|
|
2011-06-05 14:45:39 +00:00
|
|
|
${moc_srcs}
|
|
|
|
|
${moc_uis}
|
|
|
|
|
${srcs_qrc}
|
|
|
|
|
)
|
|
|
|
|
|
2017-11-06 00:19:12 -05:00
|
|
|
# to get includes in visual studio
|
|
|
|
|
IF(MSVC)
|
|
|
|
|
FILE(GLOB HEADERS
|
|
|
|
|
../include/${PROJECT_PREFIX}/gui/*.h
|
|
|
|
|
)
|
|
|
|
|
SET(SRC_FILES ${SRC_FILES} ${HEADERS})
|
|
|
|
|
ENDIF(MSVC)
|
|
|
|
|
|
2011-06-05 14:45:39 +00:00
|
|
|
SET(INCLUDE_DIRS
|
2021-11-14 19:29:37 -05:00
|
|
|
${PROJECT_BINARY_DIR}/corelib/include
|
2012-06-24 17:19:34 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/corelib/include
|
2013-04-30 20:16:01 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/utilite/include
|
2011-06-05 14:45:39 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../include
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
${OpenCV_INCLUDE_DIRS}
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR} # for qt ui generated in binary dir
|
2013-12-11 00:12:44 +00:00
|
|
|
${PCL_INCLUDE_DIRS}
|
2011-06-05 14:45:39 +00:00
|
|
|
)
|
|
|
|
|
|
2019-07-09 20:48:09 -04:00
|
|
|
# Hack as CameraRealsense2.h needs realsense2 include dir
|
|
|
|
|
IF(realsense2_FOUND)
|
|
|
|
|
SET(INCLUDE_DIRS
|
|
|
|
|
${INCLUDE_DIRS}
|
|
|
|
|
${realsense2_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
ENDIF(realsense2_FOUND)
|
2020-06-30 23:18:31 -04:00
|
|
|
# Hack as CameraK4A.h needs k4a include dir
|
|
|
|
|
IF(k4a_FOUND)
|
|
|
|
|
SET(INCLUDE_DIRS
|
|
|
|
|
${INCLUDE_DIRS}
|
|
|
|
|
${k4a_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
ENDIF(k4a_FOUND)
|
2019-07-09 20:48:09 -04:00
|
|
|
|
2016-05-04 16:45:19 -04:00
|
|
|
IF(QT4_FOUND)
|
2015-03-16 19:51:22 +00:00
|
|
|
INCLUDE(${QT_USE_FILE})
|
2016-05-04 16:45:19 -04:00
|
|
|
ENDIF(QT4_FOUND)
|
2011-06-05 14:45:39 +00:00
|
|
|
|
|
|
|
|
SET(LIBRARIES
|
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
|
${OpenCV_LIBS}
|
2013-12-11 00:12:44 +00:00
|
|
|
${PCL_LIBRARIES}
|
2011-06-05 14:45:39 +00:00
|
|
|
)
|
|
|
|
|
|
2020-04-18 16:03:09 -04:00
|
|
|
IF(octomap_FOUND)
|
2016-07-15 17:46:13 -04:00
|
|
|
SET(INCLUDE_DIRS
|
|
|
|
|
${INCLUDE_DIRS}
|
|
|
|
|
${OCTOMAP_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
SET(LIBRARIES
|
|
|
|
|
${LIBRARIES}
|
|
|
|
|
${OCTOMAP_LIBRARIES}
|
|
|
|
|
)
|
2020-04-18 16:03:09 -04:00
|
|
|
ENDIF(octomap_FOUND)
|
2016-07-15 17:46:13 -04:00
|
|
|
|
2017-05-05 21:44:06 -04:00
|
|
|
IF(CPUTSDF_FOUND)
|
|
|
|
|
SET(INCLUDE_DIRS
|
|
|
|
|
${INCLUDE_DIRS}
|
|
|
|
|
${CPUTSDF_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
SET(LIBRARIES
|
|
|
|
|
${LIBRARIES}
|
|
|
|
|
${CPUTSDF_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
ENDIF(CPUTSDF_FOUND)
|
|
|
|
|
|
2018-03-26 18:06:41 -04:00
|
|
|
IF(open_chisel_FOUND)
|
|
|
|
|
SET(INCLUDE_DIRS
|
|
|
|
|
${INCLUDE_DIRS}
|
|
|
|
|
${open_chisel_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
SET(LIBRARIES
|
|
|
|
|
${LIBRARIES}
|
|
|
|
|
${open_chisel_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
ENDIF(open_chisel_FOUND)
|
|
|
|
|
|
2014-07-26 05:23:24 +00:00
|
|
|
IF(VTK_USE_QVTK)
|
|
|
|
|
SET(INCLUDE_DIRS ${INCLUDE_DIRS} ${QVTK_INCLUDE_DIR})
|
|
|
|
|
SET(LIBRARIES ${LIBRARIES} ${QVTK_LIBRARY})
|
|
|
|
|
ENDIF(VTK_USE_QVTK)
|
|
|
|
|
|
2011-06-05 14:45:39 +00:00
|
|
|
#include files
|
|
|
|
|
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
|
|
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
add_definitions(${PCL_DEFINITIONS})
|
|
|
|
|
|
2012-06-24 17:19:34 +00:00
|
|
|
# create a library from the source files
|
2013-12-11 00:12:44 +00:00
|
|
|
ADD_LIBRARY(rtabmap_gui ${SRC_FILES})
|
2011-06-05 14:45:39 +00:00
|
|
|
# Linking with Qt libraries
|
2015-03-16 19:51:22 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
TARGET_LINK_LIBRARIES(rtabmap_gui rtabmap_core rtabmap_utilite ${LIBRARIES})
|
2016-05-04 16:45:19 -04:00
|
|
|
IF(Qt5_FOUND)
|
2017-08-03 16:40:12 -04:00
|
|
|
IF(Qt5Svg_FOUND)
|
|
|
|
|
QT5_USE_MODULES(rtabmap_gui Widgets Core Gui Svg PrintSupport)
|
|
|
|
|
ELSE()
|
|
|
|
|
QT5_USE_MODULES(rtabmap_gui Widgets Core Gui PrintSupport)
|
|
|
|
|
ENDIF()
|
2016-05-04 16:45:19 -04:00
|
|
|
ENDIF(Qt5_FOUND)
|
2011-06-05 14:45:39 +00:00
|
|
|
|
2014-12-09 20:17:03 -05:00
|
|
|
SET_TARGET_PROPERTIES(
|
|
|
|
|
rtabmap_gui
|
|
|
|
|
PROPERTIES
|
|
|
|
|
VERSION ${RTABMAP_VERSION}
|
|
|
|
|
SOVERSION ${RTABMAP_MAJOR_VERSION}.${RTABMAP_MINOR_VERSION}
|
|
|
|
|
)
|
|
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
INSTALL(TARGETS rtabmap_gui
|
2014-12-17 17:28:21 +01:00
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
|
|
|
|
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT devel
|
|
|
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT devel)
|
2011-06-05 14:45:39 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../include/ DESTINATION "${INSTALL_INCLUDE_DIR}" COMPONENT devel FILES_MATCHING PATTERN "*.h" PATTERN ".svn" EXCLUDE)
|