BaxterInterface/ongoing/Visp_tests/generic-rgbd/CMakeLists.txt
2018-08-13 11:25:26 +02:00

34 lines
1.2 KiB
CMake

project(tutorial-tracking-mb-generic-rgbd)
cmake_minimum_required(VERSION 2.6)
find_package(VISP REQUIRED visp_core visp_mbt visp_io visp_gui)
# set the list of source files
set(tutorial_cpp
tutorial-mb-generic-tracker-rgbd.cpp)
file(GLOB tutorial_data data/color_image_*.jpg data/depth_image_*.bin)
list(APPEND tutorial_data "${CMAKE_CURRENT_SOURCE_DIR}/cube_depth.xml")
list(APPEND tutorial_data "${CMAKE_CURRENT_SOURCE_DIR}/cube.xml")
list(APPEND tutorial_data "${CMAKE_CURRENT_SOURCE_DIR}/cube.cao")
list(APPEND tutorial_data "${CMAKE_CURRENT_SOURCE_DIR}/cube.init")
list(APPEND tutorial_data "${CMAKE_CURRENT_SOURCE_DIR}/cube.ppm")
list(APPEND tutorial_data "${CMAKE_CURRENT_SOURCE_DIR}/depth_M_color.txt")
foreach(cpp ${tutorial_cpp})
visp_add_target(${cpp})
if(VISP_HAVE_OGRE)
visp_set_source_file_compile_flag(${cpp} -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-overloaded-virtual)
endif()
if(COMMAND visp_add_dependency)
visp_add_dependency(${cpp} "tutorials")
endif()
endforeach()
# Copy the data files to the same location than the target
foreach(data ${tutorial_data})
visp_copy_data(tutorial-mb-generic-tracker-rgbd.cpp ${data})
endforeach()