File: CMakeLists.txt

package info (click to toggle)
visp 3.7.0-7
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 166,380 kB
  • sloc: cpp: 392,705; ansic: 224,448; xml: 23,444; python: 13,701; java: 4,792; sh: 206; objc: 145; makefile: 118
file content (26 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 3.10)

project(tutorial-detection-face)

find_package(VISP REQUIRED visp_detection visp_io visp_gui visp_sensor)

# set the list of source files
set(tutorial_cpp
  tutorial-face-detector.cpp
  tutorial-face-detector-live.cpp
  tutorial-face-detector-live-threaded.cpp)

list(APPEND tutorial_data "${CMAKE_CURRENT_SOURCE_DIR}/haarcascade_frontalface_alt.xml" )
list(APPEND tutorial_data "${CMAKE_CURRENT_SOURCE_DIR}/video.mp4" )

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-face-detector-live.cpp ${data})
endforeach()