set(CMAKE_CXX_STANDARD 14)
cmake_minimum_required(VERSION 2.8.3)
project(map_generator)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  geometry_msgs
  pcl_conversions
)
find_package(PCL REQUIRED)
find_package(Eigen3 REQUIRED)

catkin_package()

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
  ${EIGEN3_INCLUDE_DIR}
  ${PCL_INCLUDE_DIRS}
)

# add_executable (random_forest src/random_forest_sensing.cpp )
# target_link_libraries(random_forest
#   ${catkin_LIBRARIES}
#   ${PCL_LIBRARIES})

add_executable (map_recorder src/map_recorder.cpp )
target_link_libraries(map_recorder
  ${catkin_LIBRARIES}
  ${PCL_LIBRARIES})

add_executable (map_pub src/map_publisher.cpp )
target_link_libraries(map_pub
  ${catkin_LIBRARIES}
  ${PCL_LIBRARIES})

add_executable (pilar_map src/random_pilar_map.cpp )
target_link_libraries(pilar_map
  ${catkin_LIBRARIES}
  ${PCL_LIBRARIES}) 

add_executable (click_map src/click_map.cpp )
target_link_libraries(click_map
  ${catkin_LIBRARIES}
  ${PCL_LIBRARIES}) 
