cmake_minimum_required(VERSION 2.8.11)
project(qt_ros_pcl)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  roscpp
  pluginlib
  sensor_msgs
  pcl_ros
  pcl_conversions
)
find_package(Boost REQUIRED)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
find_package(Qt5Core REQUIRED)
#qt5_wrap_cpp(MOC src/qt_ros_test.h)
#qt5_wrap_ui(UIC src/qt_ros_test.ui)

## Uncomment this if the package has a setup.py. This macro ensures
## modules and global scripts declared therein get installed
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
# catkin_python_setup()


###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
##   INCLUDE_DIRS include
#  LIBRARIES client_plugin
   CATKIN_DEPENDS 
    roscpp std_msgs 
    sensor_msgs pluginlib
    pcl_ros pcl_conversions
  DEPENDS
    Boost
#  DEPENDS system_lib
)

###########
## Build ##
###########

## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
##  INCLUDE_DIRS include
  ${CMAKE_CURRENT_BINARY_DIR}/..
  ${catkin_INCLUDE_DIRS}
  ${Boost_INCLUDE_DIR}
)

## Declare a C++ executable
add_executable(${PROJECT_NAME}_node src/main.cpp src/adcmemshare.cpp src/adcmemshare.h src/procsm.cpp src/procsm.h src/procsm_if.cpp src/procsm_if.h)
target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} Qt5::Core)

