Skip to content

Commit

Permalink
Place cmake_minimum_required() before project() to satisfy recent cma…
Browse files Browse the repository at this point in the history
…ke versions
  • Loading branch information
fspindle committed Jan 17, 2025
1 parent 4d75711 commit 711543b
Show file tree
Hide file tree
Showing 50 changed files with 365 additions and 84 deletions.
4 changes: 2 additions & 2 deletions apps/calibration/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/tutorial/developper/tutorial-add-new-dependency.dox
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/calibration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/device/display/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/device/kinect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/device/light/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/homography/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 35 additions & 0 deletions example/kalman/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
35 changes: 35 additions & 0 deletions example/manual/geometric-features/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
37 changes: 36 additions & 1 deletion example/manual/hello-world/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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})
Expand Down
35 changes: 35 additions & 0 deletions example/manual/image-manipulation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
35 changes: 35 additions & 0 deletions example/manual/moments/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
35 changes: 35 additions & 0 deletions example/manual/ogre/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
35 changes: 35 additions & 0 deletions example/manual/simulation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions example/moments/image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions example/moments/polygon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 711543b

Please sign in to comment.