
set (KINECT_EXAMPLE_SRC opencv_openni_example.cpp)

add_executable(opencv_openni_example ${KINECT_EXAMPLE_SRC})
target_link_libraries(opencv_openni_example statisticaledges ${OpenCV_LIBS})

set (PCL_EXAMPLE_SRC pcl_example.cpp)

if (PCL_FOUND)
  add_executable(pcl_example ${PCL_EXAMPLE_SRC})
  target_link_libraries(pcl_example statisticaledges ${PCL_LIBRARIES})
endif (PCL_FOUND)

set (MAIN_EXAMPLE_SRC detect_edges.cpp)
add_executable(detect_edges ${MAIN_EXAMPLE_SRC})
target_link_libraries(detect_edges statisticaledges ${OpenCV_LIBS})
