diff --git a/apps/calibration/CMakeLists.txt b/apps/calibration/CMakeLists.txt index cfe1f34b37..ddc3e29ce6 100644 --- a/apps/calibration/CMakeLists.txt +++ b/apps/calibration/CMakeLists.txt @@ -1,7 +1,7 @@ -project(apps-calibration) - cmake_minimum_required(VERSION 3.10) +project(apps-calibration) + find_package(VISP REQUIRED visp_vision visp_io OPTIONAL_COMPONENTS visp_gui visp_robot visp_sensor) set(apps_cpp diff --git a/doc/tutorial/developper/tutorial-add-new-dependency.dox b/doc/tutorial/developper/tutorial-add-new-dependency.dox index bde5860939..a9ba1c732b 100644 --- a/doc/tutorial/developper/tutorial-add-new-dependency.dox +++ b/doc/tutorial/developper/tutorial-add-new-dependency.dox @@ -303,10 +303,10 @@ $ cd $VISP_WS/visp/example/servo-dummy $ more CMakeLists.txt \endcode \code -project(example-dummy) - cmake_minimum_required(VERSION 3.10) +project(example-dummy) + find_package(VISP REQUIRED visp_core visp_robot) set(example_cpp diff --git a/example/calibration/CMakeLists.txt b/example/calibration/CMakeLists.txt index 5269a69ac4..a18e953742 100644 --- a/example/calibration/CMakeLists.txt +++ b/example/calibration/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-calibration) - cmake_minimum_required(VERSION 3.10) +project(example-calibration) + find_package(VISP REQUIRED visp_core visp_vision visp_gui visp_io) set(example_cpp diff --git a/example/device/display/CMakeLists.txt b/example/device/display/CMakeLists.txt index 1d8cbc60fc..b8cc74ea8c 100644 --- a/example/device/display/CMakeLists.txt +++ b/example/device/display/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-device-display) - cmake_minimum_required(VERSION 3.10) +project(example-device-display) + find_package(VISP REQUIRED visp_core visp_gui visp_io) set(example_cpp diff --git a/example/device/kinect/CMakeLists.txt b/example/device/kinect/CMakeLists.txt index 93cb732b28..930f106a7d 100644 --- a/example/device/kinect/CMakeLists.txt +++ b/example/device/kinect/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-device-kinect) - cmake_minimum_required(VERSION 3.10) +project(example-device-kinect) + find_package(VISP REQUIRED visp_core visp_sensor visp_gui) set(example_cpp diff --git a/example/device/light/CMakeLists.txt b/example/device/light/CMakeLists.txt index 71c88d6902..1faeb4987e 100644 --- a/example/device/light/CMakeLists.txt +++ b/example/device/light/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-device-laserscanner) - cmake_minimum_required(VERSION 3.10) +project(example-device-laserscanner) + find_package(VISP REQUIRED visp_core visp_robot visp_io) set(example_cpp diff --git a/example/homography/CMakeLists.txt b/example/homography/CMakeLists.txt index 8fa544b466..2496ed7a39 100644 --- a/example/homography/CMakeLists.txt +++ b/example/homography/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-homography) - cmake_minimum_required(VERSION 3.10) +project(example-homography) + find_package(VISP REQUIRED visp_core visp_vision visp_io) set(example_cpp diff --git a/example/kalman/CMakeLists.txt b/example/kalman/CMakeLists.txt index 72a8f087b6..abbf47f011 100644 --- a/example/kalman/CMakeLists.txt +++ b/example/kalman/CMakeLists.txt @@ -1,3 +1,38 @@ +############################################################################# +# +# ViSP, open source Visual Servoing Platform software. +# Copyright (C) 2005 - 2023 by Inria. All rights reserved. +# +# This software is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# See the file LICENSE.txt at the root directory of this source +# distribution for additional information about the GNU GPL. +# +# For using ViSP with software that can not be combined with the GNU +# GPL, please contact Inria about acquiring a ViSP Professional +# Edition License. +# +# See https://visp.inria.fr for more information. +# +# This software was developed at: +# Inria Rennes - Bretagne Atlantique +# Campus Universitaire de Beaulieu +# 35042 Rennes Cedex +# France +# +# If you have questions regarding the use of this file, please contact +# Inria at visp@inria.fr +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# Description: +# ViSP overall configuration file. +# +############################################################################# + cmake_minimum_required(VERSION 3.10) project(example-kalman) diff --git a/example/manual/geometric-features/CMakeLists.txt b/example/manual/geometric-features/CMakeLists.txt index f21caf5667..4a4d4475c4 100644 --- a/example/manual/geometric-features/CMakeLists.txt +++ b/example/manual/geometric-features/CMakeLists.txt @@ -1,3 +1,38 @@ +############################################################################# +# +# ViSP, open source Visual Servoing Platform software. +# Copyright (C) 2005 - 2025 by Inria. All rights reserved. +# +# This software is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# See the file LICENSE.txt at the root directory of this source +# distribution for additional information about the GNU GPL. +# +# For using ViSP with software that can not be combined with the GNU +# GPL, please contact Inria about acquiring a ViSP Professional +# Edition License. +# +# See https://visp.inria.fr for more information. +# +# This software was developed at: +# Inria Rennes - Bretagne Atlantique +# Campus Universitaire de Beaulieu +# 35042 Rennes Cedex +# France +# +# If you have questions regarding the use of this file, please contact +# Inria at visp@inria.fr +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# Description: +# ViSP overall configuration file. +# +############################################################################# + cmake_minimum_required(VERSION 3.10) project(GeometricFeatures) diff --git a/example/manual/hello-world/CMake/CMakeLists.txt b/example/manual/hello-world/CMake/CMakeLists.txt index 336c570db5..145781c433 100644 --- a/example/manual/hello-world/CMake/CMakeLists.txt +++ b/example/manual/hello-world/CMake/CMakeLists.txt @@ -1,7 +1,42 @@ -project(HelloWorld) +############################################################################# +# +# ViSP, open source Visual Servoing Platform software. +# Copyright (C) 2005 - 2023 by Inria. All rights reserved. +# +# This software is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# See the file LICENSE.txt at the root directory of this source +# distribution for additional information about the GNU GPL. +# +# For using ViSP with software that can not be combined with the GNU +# GPL, please contact Inria about acquiring a ViSP Professional +# Edition License. +# +# See https://visp.inria.fr for more information. +# +# This software was developed at: +# Inria Rennes - Bretagne Atlantique +# Campus Universitaire de Beaulieu +# 35042 Rennes Cedex +# France +# +# If you have questions regarding the use of this file, please contact +# Inria at visp@inria.fr +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# Description: +# ViSP overall configuration file. +# +############################################################################# cmake_minimum_required(VERSION 3.10) +project(HelloWorld) + find_package(VISP REQUIRED) if(VISP_FOUND) include(${VISP_USE_FILE}) diff --git a/example/manual/image-manipulation/CMakeLists.txt b/example/manual/image-manipulation/CMakeLists.txt index 3884e184d0..9f9c362f56 100644 --- a/example/manual/image-manipulation/CMakeLists.txt +++ b/example/manual/image-manipulation/CMakeLists.txt @@ -1,3 +1,38 @@ +############################################################################# +# +# ViSP, open source Visual Servoing Platform software. +# Copyright (C) 2005 - 2023 by Inria. All rights reserved. +# +# This software is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# See the file LICENSE.txt at the root directory of this source +# distribution for additional information about the GNU GPL. +# +# For using ViSP with software that can not be combined with the GNU +# GPL, please contact Inria about acquiring a ViSP Professional +# Edition License. +# +# See https://visp.inria.fr for more information. +# +# This software was developed at: +# Inria Rennes - Bretagne Atlantique +# Campus Universitaire de Beaulieu +# 35042 Rennes Cedex +# France +# +# If you have questions regarding the use of this file, please contact +# Inria at visp@inria.fr +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# Description: +# ViSP overall configuration file. +# +############################################################################# + cmake_minimum_required(VERSION 3.10) project(ImageManipulation) diff --git a/example/manual/moments/CMakeLists.txt b/example/manual/moments/CMakeLists.txt index 71fdda43db..cb49679c5a 100644 --- a/example/manual/moments/CMakeLists.txt +++ b/example/manual/moments/CMakeLists.txt @@ -1,3 +1,38 @@ +############################################################################# +# +# ViSP, open source Visual Servoing Platform software. +# Copyright (C) 2005 - 2023 by Inria. All rights reserved. +# +# This software is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# See the file LICENSE.txt at the root directory of this source +# distribution for additional information about the GNU GPL. +# +# For using ViSP with software that can not be combined with the GNU +# GPL, please contact Inria about acquiring a ViSP Professional +# Edition License. +# +# See https://visp.inria.fr for more information. +# +# This software was developed at: +# Inria Rennes - Bretagne Atlantique +# Campus Universitaire de Beaulieu +# 35042 Rennes Cedex +# France +# +# If you have questions regarding the use of this file, please contact +# Inria at visp@inria.fr +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# Description: +# ViSP overall configuration file. +# +############################################################################# + cmake_minimum_required(VERSION 3.10) project(man-moment) diff --git a/example/manual/ogre/CMakeLists.txt b/example/manual/ogre/CMakeLists.txt index 915b84ae2f..ddd8f8da18 100644 --- a/example/manual/ogre/CMakeLists.txt +++ b/example/manual/ogre/CMakeLists.txt @@ -1,3 +1,38 @@ +############################################################################# +# +# ViSP, open source Visual Servoing Platform software. +# Copyright (C) 2005 - 2023 by Inria. All rights reserved. +# +# This software is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# See the file LICENSE.txt at the root directory of this source +# distribution for additional information about the GNU GPL. +# +# For using ViSP with software that can not be combined with the GNU +# GPL, please contact Inria about acquiring a ViSP Professional +# Edition License. +# +# See https://visp.inria.fr for more information. +# +# This software was developed at: +# Inria Rennes - Bretagne Atlantique +# Campus Universitaire de Beaulieu +# 35042 Rennes Cedex +# France +# +# If you have questions regarding the use of this file, please contact +# Inria at visp@inria.fr +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# Description: +# ViSP overall configuration file. +# +############################################################################# + cmake_minimum_required(VERSION 3.10) project(OgreTutorial) diff --git a/example/manual/simulation/CMakeLists.txt b/example/manual/simulation/CMakeLists.txt index 5dd3f5f615..05cd36c310 100644 --- a/example/manual/simulation/CMakeLists.txt +++ b/example/manual/simulation/CMakeLists.txt @@ -1,3 +1,38 @@ +############################################################################# +# +# ViSP, open source Visual Servoing Platform software. +# Copyright (C) 2005 - 2023 by Inria. All rights reserved. +# +# This software is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# See the file LICENSE.txt at the root directory of this source +# distribution for additional information about the GNU GPL. +# +# For using ViSP with software that can not be combined with the GNU +# GPL, please contact Inria about acquiring a ViSP Professional +# Edition License. +# +# See https://visp.inria.fr for more information. +# +# This software was developed at: +# Inria Rennes - Bretagne Atlantique +# Campus Universitaire de Beaulieu +# 35042 Rennes Cedex +# France +# +# If you have questions regarding the use of this file, please contact +# Inria at visp@inria.fr +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# Description: +# ViSP overall configuration file. +# +############################################################################# + cmake_minimum_required(VERSION 3.10) project(ImageManipulation) diff --git a/example/moments/image/CMakeLists.txt b/example/moments/image/CMakeLists.txt index 795200f312..eb79cfbe3e 100644 --- a/example/moments/image/CMakeLists.txt +++ b/example/moments/image/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-moments-image) - cmake_minimum_required(VERSION 3.10) +project(example-moments-image) + find_package(VISP REQUIRED visp_core visp_vs visp_robot visp_gui) set(example_cpp diff --git a/example/moments/polygon/CMakeLists.txt b/example/moments/polygon/CMakeLists.txt index d8940e4853..86aba87283 100644 --- a/example/moments/polygon/CMakeLists.txt +++ b/example/moments/polygon/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-moments-polygon) - cmake_minimum_required(VERSION 3.10) +project(example-moments-polygon) + find_package(VISP REQUIRED visp_core visp_vs visp_robot visp_gui) set(example_cpp diff --git a/example/parse-argv/CMakeLists.txt b/example/parse-argv/CMakeLists.txt index 51f51d60b8..2198c36f31 100644 --- a/example/parse-argv/CMakeLists.txt +++ b/example/parse-argv/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-parse-argv) - cmake_minimum_required(VERSION 3.10) +project(example-parse-argv) + find_package(VISP REQUIRED visp_core visp_io) set(example_cpp diff --git a/example/particle-filter/CMakeLists.txt b/example/particle-filter/CMakeLists.txt index 9fcb2d9d1d..5963f0aa2e 100644 --- a/example/particle-filter/CMakeLists.txt +++ b/example/particle-filter/CMakeLists.txt @@ -1,3 +1,38 @@ +############################################################################# +# +# ViSP, open source Visual Servoing Platform software. +# Copyright (C) 2005 - 2024 by Inria. All rights reserved. +# +# This software is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# See the file LICENSE.txt at the root directory of this source +# distribution for additional information about the GNU GPL. +# +# For using ViSP with software that can not be combined with the GNU +# GPL, please contact Inria about acquiring a ViSP Professional +# Edition License. +# +# See https://visp.inria.fr for more information. +# +# This software was developed at: +# Inria Rennes - Bretagne Atlantique +# Campus Universitaire de Beaulieu +# 35042 Rennes Cedex +# France +# +# If you have questions regarding the use of this file, please contact +# Inria at visp@inria.fr +# +# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# Description: +# ViSP configuration file. +# +############################################################################# + cmake_minimum_required(VERSION 3.10) project(example-kalman) diff --git a/example/reflex-takktile/CMakeLists.txt b/example/reflex-takktile/CMakeLists.txt index 62128e0c2d..840d915ee5 100644 --- a/example/reflex-takktile/CMakeLists.txt +++ b/example/reflex-takktile/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-reflex-takktile) - cmake_minimum_required(VERSION 3.10) +project(example-reflex-takktile) + if(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) set(WINRT TRUE) endif(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) diff --git a/example/robot-simulator/camera/CMakeLists.txt b/example/robot-simulator/camera/CMakeLists.txt index 2986412d99..066e803b77 100644 --- a/example/robot-simulator/camera/CMakeLists.txt +++ b/example/robot-simulator/camera/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-robot-simulator-camera) - cmake_minimum_required(VERSION 3.10) +project(example-robot-simulator-camera) + if(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) set(WINRT TRUE) endif(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) diff --git a/example/servo-afma4/CMakeLists.txt b/example/servo-afma4/CMakeLists.txt index 0fb38fb468..b0629717d3 100644 --- a/example/servo-afma4/CMakeLists.txt +++ b/example/servo-afma4/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-servo-afma4) - cmake_minimum_required(VERSION 3.10) +project(example-servo-afma4) + find_package(VISP REQUIRED visp_core visp_blob visp_vs visp_robot visp_sensor visp_gui) set(example_cpp diff --git a/example/servo-bebop2/CMakeLists.txt b/example/servo-bebop2/CMakeLists.txt index 8b14461b13..45ca65ed14 100644 --- a/example/servo-bebop2/CMakeLists.txt +++ b/example/servo-bebop2/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-servo-bebop2) - cmake_minimum_required(VERSION 3.10) +project(example-servo-bebop2) + find_package(VISP REQUIRED visp_core visp_vs visp_robot visp_gui visp_detection) set(example_cpp diff --git a/example/servo-flir-ptu/CMakeLists.txt b/example/servo-flir-ptu/CMakeLists.txt index 794091a393..170ed0c253 100644 --- a/example/servo-flir-ptu/CMakeLists.txt +++ b/example/servo-flir-ptu/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-servo-flir-ptu) - cmake_minimum_required(VERSION 3.10) +project(example-servo-flir-ptu) + find_package(VISP REQUIRED visp_core visp_robot visp_sensor visp_vision visp_gui visp_vs visp_visual_features visp_detection) set(example_cpp diff --git a/example/servo-kinova/CMakeLists.txt b/example/servo-kinova/CMakeLists.txt index d699153a23..80c93e9991 100644 --- a/example/servo-kinova/CMakeLists.txt +++ b/example/servo-kinova/CMakeLists.txt @@ -36,10 +36,10 @@ # ############################################################################# -project(example-servo-kinova) - cmake_minimum_required(VERSION 3.10) +project(example-servo-kinova) + find_package(VISP REQUIRED visp_core visp_blob visp_vs visp_robot visp_sensor visp_gui) set(example_cpp diff --git a/example/servo-pixhawk/CMakeLists.txt b/example/servo-pixhawk/CMakeLists.txt index 2d0017aeba..7060238f70 100644 --- a/example/servo-pixhawk/CMakeLists.txt +++ b/example/servo-pixhawk/CMakeLists.txt @@ -33,10 +33,10 @@ # # ############################################################################ -project(example-servo-pixhawk) - cmake_minimum_required(VERSION 3.10) +project(example-servo-pixhawk) + find_package(VISP REQUIRED visp_core visp_vs visp_robot visp_gui visp_detection visp_sensor) set(example_cpp diff --git a/example/servo-universal-robots/CMakeLists.txt b/example/servo-universal-robots/CMakeLists.txt index 74292dc6df..7a091b7a25 100644 --- a/example/servo-universal-robots/CMakeLists.txt +++ b/example/servo-universal-robots/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-servo-universal-robots) - cmake_minimum_required(VERSION 3.10) +project(example-servo-universal-robots) + find_package(VISP REQUIRED visp_robot visp_io) set(example_cpp diff --git a/example/servo-viper850/CMakeLists.txt b/example/servo-viper850/CMakeLists.txt index d3e2229aae..3ee9f73a62 100644 --- a/example/servo-viper850/CMakeLists.txt +++ b/example/servo-viper850/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-servo-viper850) - cmake_minimum_required(VERSION 3.10) +project(example-servo-viper850) + if(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) set(WINRT TRUE) endif(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) diff --git a/example/tracking/CMakeLists.txt b/example/tracking/CMakeLists.txt index cad1f2ecf7..eb96a5e2a8 100644 --- a/example/tracking/CMakeLists.txt +++ b/example/tracking/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-tracking) - cmake_minimum_required(VERSION 3.10) +project(example-tracking) + find_package(VISP REQUIRED visp_core visp_blob visp_io visp_gui visp_mbt visp_me visp_tt visp_tt_mi) set(example_cpp diff --git a/example/wireframe-simulator/CMakeLists.txt b/example/wireframe-simulator/CMakeLists.txt index 02cac5fae6..ae0069edf4 100644 --- a/example/wireframe-simulator/CMakeLists.txt +++ b/example/wireframe-simulator/CMakeLists.txt @@ -33,10 +33,10 @@ # ############################################################################# -project(example-wireframe-simulator) - cmake_minimum_required(VERSION 3.10) +project(example-wireframe-simulator) + find_package(VISP REQUIRED visp_core visp_robot visp_io visp_gui) set(example_cpp diff --git a/modules/sensor/include/visp3/sensor/vpRealSense.h b/modules/sensor/include/visp3/sensor/vpRealSense.h index 4c8f6e3cb3..90d6c05da6 100644 --- a/modules/sensor/include/visp3/sensor/vpRealSense.h +++ b/modules/sensor/include/visp3/sensor/vpRealSense.h @@ -78,9 +78,10 @@ BEGIN_VISP_NAMESPACE -std=c++11 compiler option. Hereafter we give an example of a CMakeLists.txt file that allows to build sample-realsense.cpp that uses vpRealSense class. \code - project(sample) cmake_minimum_required(VERSION 3.10) + project(sample) + find_package(VISP REQUIRED) include_directories(${VISP_INCLUDE_DIRS}) diff --git a/tutorial/detection/barcode/CMakeLists.txt b/tutorial/detection/barcode/CMakeLists.txt index 91bcfc4ad1..4ee1776765 100644 --- a/tutorial/detection/barcode/CMakeLists.txt +++ b/tutorial/detection/barcode/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-barcode) - cmake_minimum_required(VERSION 3.10) +project(tutorial-barcode) + find_package(VISP REQUIRED visp_core visp_detection visp_io visp_gui visp_sensor) set(tutorial_cpp diff --git a/tutorial/detection/face/CMakeLists.txt b/tutorial/detection/face/CMakeLists.txt index b97a43add8..d4860065e5 100644 --- a/tutorial/detection/face/CMakeLists.txt +++ b/tutorial/detection/face/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-detection-face) - 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 diff --git a/tutorial/detection/object/CMakeLists.txt b/tutorial/detection/object/CMakeLists.txt index 139c97fac9..f1197becf3 100644 --- a/tutorial/detection/object/CMakeLists.txt +++ b/tutorial/detection/object/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-detection-object) - cmake_minimum_required(VERSION 3.10) +project(tutorial-detection-object) + find_package(VISP REQUIRED visp_core visp_vision visp_mbt visp_io visp_gui) # set the list of source files diff --git a/tutorial/grabber/CMakeLists.txt b/tutorial/grabber/CMakeLists.txt index ff9fe368d4..5efc8df5f1 100644 --- a/tutorial/grabber/CMakeLists.txt +++ b/tutorial/grabber/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-grabber) - cmake_minimum_required(VERSION 3.10) +project(tutorial-grabber) + find_package(VISP REQUIRED visp_core visp_sensor visp_io visp_gui) # set the list of source files diff --git a/tutorial/image/CMakeLists.txt b/tutorial/image/CMakeLists.txt index 219cd5f77a..2171f83c24 100644 --- a/tutorial/image/CMakeLists.txt +++ b/tutorial/image/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-image) - cmake_minimum_required(VERSION 3.10) +project(tutorial-image) + find_package(VISP REQUIRED visp_core visp_io visp_gui) set(tutorial_cpp diff --git a/tutorial/imgproc/brightness/CMakeLists.txt b/tutorial/imgproc/brightness/CMakeLists.txt index eba0bf44c1..1fc6860e0a 100644 --- a/tutorial/imgproc/brightness/CMakeLists.txt +++ b/tutorial/imgproc/brightness/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-brightness-adjustment) - cmake_minimum_required(VERSION 3.10) +project(tutorial-brightness-adjustment) + find_package(VISP REQUIRED visp_core visp_io visp_gui visp_imgproc) # set the list of source files diff --git a/tutorial/imgproc/contour/CMakeLists.txt b/tutorial/imgproc/contour/CMakeLists.txt index 296514e0b9..1df528459e 100644 --- a/tutorial/imgproc/contour/CMakeLists.txt +++ b/tutorial/imgproc/contour/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-contour) - cmake_minimum_required(VERSION 3.10) +project(tutorial-contour) + find_package(VISP REQUIRED visp_core visp_io visp_gui visp_imgproc) # set the list of source files diff --git a/tutorial/imgproc/count-coins/CMakeLists.txt b/tutorial/imgproc/count-coins/CMakeLists.txt index 4d72bededf..499187dffe 100644 --- a/tutorial/imgproc/count-coins/CMakeLists.txt +++ b/tutorial/imgproc/count-coins/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-counting-coins) - cmake_minimum_required(VERSION 3.10) +project(tutorial-counting-coins) + find_package(VISP REQUIRED visp_core visp_io visp_gui visp_imgproc) # set the list of source files diff --git a/tutorial/imgproc/hough-transform/CMakeLists.txt b/tutorial/imgproc/hough-transform/CMakeLists.txt index e79db8ca29..3e610f5563 100644 --- a/tutorial/imgproc/hough-transform/CMakeLists.txt +++ b/tutorial/imgproc/hough-transform/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-hough) - cmake_minimum_required(VERSION 3.10) +project(tutorial-hough) + find_package(VISP REQUIRED visp_core visp_gui visp_imgproc visp_io) # set the list of source files diff --git a/tutorial/matlab/CMakeLists.txt b/tutorial/matlab/CMakeLists.txt index 160991474d..c5b0ff5ddb 100644 --- a/tutorial/matlab/CMakeLists.txt +++ b/tutorial/matlab/CMakeLists.txt @@ -1,7 +1,7 @@ -project(visp-matlab) - cmake_minimum_required(VERSION 3.10) +project(visp-matlab) + find_package(VISP REQUIRED visp_core) include_directories(${VISP_INCLUDE_DIRS}) diff --git a/tutorial/robot/flir-ptu/CMakeLists.txt b/tutorial/robot/flir-ptu/CMakeLists.txt index 926b1aecf5..487d1ef1e4 100644 --- a/tutorial/robot/flir-ptu/CMakeLists.txt +++ b/tutorial/robot/flir-ptu/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-robot-flir-ptu) - cmake_minimum_required(VERSION 3.10) +project(tutorial-robot-flir-ptu) + if(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) set(WINRT TRUE) endif(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) diff --git a/tutorial/robot/pioneer/CMakeLists.txt b/tutorial/robot/pioneer/CMakeLists.txt index 83710b1b22..3dd8a0ef80 100644 --- a/tutorial/robot/pioneer/CMakeLists.txt +++ b/tutorial/robot/pioneer/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-robot) - cmake_minimum_required(VERSION 3.10) +project(tutorial-robot) + if(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) set(WINRT TRUE) endif(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore) diff --git a/tutorial/trace/CMakeLists.txt b/tutorial/trace/CMakeLists.txt index 5f1d5e6452..4914d69b50 100644 --- a/tutorial/trace/CMakeLists.txt +++ b/tutorial/trace/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-trace) - cmake_minimum_required(VERSION 3.10) +project(tutorial-trace) + find_package(VISP REQUIRED visp_core) # set the list of source files diff --git a/tutorial/tracking/dnn/CMakeLists.txt b/tutorial/tracking/dnn/CMakeLists.txt index 8b4659893e..7f3b9f7a96 100644 --- a/tutorial/tracking/dnn/CMakeLists.txt +++ b/tutorial/tracking/dnn/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-tracking-dnn) - cmake_minimum_required(VERSION 3.10) +project(tutorial-tracking-dnn) + find_package(VISP REQUIRED visp_core visp_detection visp_dnn_tracker visp_io visp_gui visp_sensor) # set the list of source files diff --git a/tutorial/tracking/model-based/generic-rgbd/CMakeLists.txt b/tutorial/tracking/model-based/generic-rgbd/CMakeLists.txt index 48a2b89f24..edbd8d739a 100644 --- a/tutorial/tracking/model-based/generic-rgbd/CMakeLists.txt +++ b/tutorial/tracking/model-based/generic-rgbd/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-tracking-mb-generic-rgbd) - cmake_minimum_required(VERSION 3.10) +project(tutorial-tracking-mb-generic-rgbd) + find_package(VISP REQUIRED visp_core visp_mbt visp_io visp_gui visp_sensor) # set the list of source files diff --git a/tutorial/tracking/model-based/generic-stereo/CMakeLists.txt b/tutorial/tracking/model-based/generic-stereo/CMakeLists.txt index bb6ca59cd3..64ee89ad30 100644 --- a/tutorial/tracking/model-based/generic-stereo/CMakeLists.txt +++ b/tutorial/tracking/model-based/generic-stereo/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-tracking-mb-generic-stereo) - cmake_minimum_required(VERSION 3.10) +project(tutorial-tracking-mb-generic-stereo) + find_package(VISP REQUIRED visp_core visp_mbt visp_io visp_gui) # set the list of source files diff --git a/tutorial/tracking/model-based/generic/CMakeLists.txt b/tutorial/tracking/model-based/generic/CMakeLists.txt index 1d37b3943e..3927bf0c61 100644 --- a/tutorial/tracking/model-based/generic/CMakeLists.txt +++ b/tutorial/tracking/model-based/generic/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-tracking-mb) - cmake_minimum_required(VERSION 3.10) +project(tutorial-tracking-mb) + find_package(VISP REQUIRED visp_core visp_mbt visp_io visp_gui visp_sensor visp_vision) # set the list of source files diff --git a/tutorial/tracking/model-based/old/generic/CMakeLists.txt b/tutorial/tracking/model-based/old/generic/CMakeLists.txt index 617e101903..af16a31dc4 100644 --- a/tutorial/tracking/model-based/old/generic/CMakeLists.txt +++ b/tutorial/tracking/model-based/old/generic/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-tracking-mb) - cmake_minimum_required(VERSION 3.10) +project(tutorial-tracking-mb) + find_package(VISP REQUIRED visp_core visp_mbt visp_io visp_gui) # set the list of source files diff --git a/tutorial/tracking/model-based/old/keypoint/CMakeLists.txt b/tutorial/tracking/model-based/old/keypoint/CMakeLists.txt index 7ce1c5bd19..101b65edef 100644 --- a/tutorial/tracking/model-based/old/keypoint/CMakeLists.txt +++ b/tutorial/tracking/model-based/old/keypoint/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-tracking-mb-keypoint) - cmake_minimum_required(VERSION 3.10) +project(tutorial-tracking-mb-keypoint) + find_package(VISP REQUIRED visp_core visp_mbt visp_klt visp_gui) # set the list of source files diff --git a/tutorial/tracking/template-tracker/CMakeLists.txt b/tutorial/tracking/template-tracker/CMakeLists.txt index 505d6cc1c3..46894a92dd 100644 --- a/tutorial/tracking/template-tracker/CMakeLists.txt +++ b/tutorial/tracking/template-tracker/CMakeLists.txt @@ -1,7 +1,7 @@ -project(tutorial-tracking-template) - cmake_minimum_required(VERSION 3.10) +project(tutorial-tracking-template) + find_package(VISP REQUIRED visp_core visp_tt visp_io visp_gui) # set the list of source files