1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
cmake_minimum_required(VERSION 3.5)
project(tutorial-simulation-image)
find_package(VISP REQUIRED visp_core visp_robot visp_io visp_gui)
# set the list of source files
set(tutorial_cpp
tutorial-image-simulator.cpp)
list(APPEND tutorial_data "${CMAKE_CURRENT_SOURCE_DIR}/target_square.pgm" )
foreach(cpp ${tutorial_cpp})
visp_add_target(${cpp})
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-image-simulator.cpp ${data})
endforeach()
|