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
|
2011-06-05 14:45:39 +00:00
|
|
|
./AboutDialog.h
|
|
|
|
|
./ConsoleWidget.h
|
2012-06-24 17:19:34 +00:00
|
|
|
../include/${PROJECT_PREFIX}/gui/ImageView.h
|
2011-06-05 14:45:39 +00:00
|
|
|
./PdfPlot.h
|
|
|
|
|
./StatsToolBox.h
|
|
|
|
|
./DetailedProgressDialog.h
|
2013-04-30 20:16:01 +00:00
|
|
|
./utilite/UPlot.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
|
2014-01-22 19:49:28 +00:00
|
|
|
./ExportDialog.h
|
|
|
|
|
./MapVisibilityWidget.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
|
2011-06-05 14:45:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(qrc
|
|
|
|
|
./GuiLib.qrc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# generate rules for building source files from the resources
|
|
|
|
|
QT4_ADD_RESOURCES(srcs_qrc ${qrc})
|
|
|
|
|
|
|
|
|
|
#Generate .h files from the .ui files
|
|
|
|
|
QT4_WRAP_UI(moc_uis ${uis})
|
|
|
|
|
|
|
|
|
|
#This will generate moc_* for Qt
|
|
|
|
|
QT4_WRAP_CPP(moc_srcs ${headers_ui})
|
|
|
|
|
### Qt Gui stuff end###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SET(SRC_FILES
|
|
|
|
|
./MainWindow.cpp
|
|
|
|
|
./PreferencesDialog.cpp
|
|
|
|
|
./KeypointItem.cpp
|
|
|
|
|
./ImageView.cpp
|
|
|
|
|
./PdfPlot.cpp
|
|
|
|
|
./StatsToolBox.cpp
|
|
|
|
|
./DetailedProgressDialog.cpp
|
|
|
|
|
./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
|
|
|
|
|
./OdometryViewer.cpp
|
|
|
|
|
./LoopClosureViewer.cpp
|
|
|
|
|
./DataRecorder.cpp
|
2014-01-22 19:49:28 +00:00
|
|
|
./ExportDialog.cpp
|
|
|
|
|
./MapVisibilityWidget.cpp
|
2011-06-05 14:45:39 +00:00
|
|
|
${moc_srcs}
|
|
|
|
|
${moc_uis}
|
|
|
|
|
${srcs_qrc}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(INCLUDE_DIRS
|
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
|
|
|
)
|
|
|
|
|
|
|
|
|
|
INCLUDE(${QT_USE_FILE})
|
|
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
INCLUDE(${VTK_USE_FILE})
|
|
|
|
|
|
2011-06-05 14:45:39 +00:00
|
|
|
SET(LIBRARIES
|
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
|
${OpenCV_LIBS}
|
2013-12-11 00:12:44 +00:00
|
|
|
${PCL_LIBRARIES}
|
|
|
|
|
QVTK
|
|
|
|
|
vtkHybrid
|
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
|
2013-12-11 00:12:44 +00:00
|
|
|
TARGET_LINK_LIBRARIES(rtabmap_gui rtabmap_core rtabmap_utilite ${LIBRARIES})
|
2011-06-05 14:45:39 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
INSTALL(TARGETS rtabmap_gui
|
|
|
|
|
RUNTIME DESTINATION "${INSTALL_BIN_DIR}" COMPONENT runtime
|
|
|
|
|
LIBRARY DESTINATION "${INSTALL_LIB_DIR}" COMPONENT devel
|
|
|
|
|
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}" 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)
|