mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-09-27 00:29:13 +08:00
50 lines
1.1 KiB
CMake
50 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
project(moveit_task_constructor_visualization)
|
|
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
moveit_task_constructor_msgs
|
|
moveit_task_constructor_core
|
|
moveit_ros_visualization
|
|
rviz
|
|
)
|
|
|
|
# definition needed for boost/math/constants/constants.hpp included by Ogre to compile
|
|
add_definitions(-DBOOST_MATH_DISABLE_FLOAT128)
|
|
|
|
# Qt Stuff
|
|
if(rviz_QT_VERSION VERSION_LESS "5")
|
|
find_package(Qt4 ${rviz_QT_VERSION} REQUIRED QtCore QtGui)
|
|
include(${QT_USE_FILE})
|
|
macro(qt_wrap_ui)
|
|
qt4_wrap_ui(${ARGN})
|
|
endmacro()
|
|
else()
|
|
find_package(Qt5 ${rviz_QT_VERSION} REQUIRED Core Widgets)
|
|
set(QT_LIBRARIES Qt5::Widgets)
|
|
macro(qt_wrap_ui)
|
|
qt5_wrap_ui(${ARGN})
|
|
endmacro()
|
|
endif()
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
add_definitions(-DQT_NO_KEYWORDS)
|
|
|
|
catkin_package(
|
|
)
|
|
|
|
if (CMAKE_VERSION VERSION_LESS "3.1")
|
|
add_compile_options(-std=c++14)
|
|
else ()
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
endif ()
|
|
|
|
include_directories(${catkin_INCLUDE_DIRS})
|
|
|
|
add_subdirectory(visualization_tools)
|
|
add_subdirectory(motion_planning_tasks)
|
|
|
|
install(FILES
|
|
motion_planning_tasks_rviz_plugin_description.xml
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
|