Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat cmake and doc #1508

Merged
merged 8 commits into from
Nov 26, 2024
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()

cmake_minimum_required(VERSION 3.5) # needs to be before project() for policy CMP0025
cmake_minimum_required(VERSION 3.10) # needs to be before project() for policy CMP0025

# Detect if the toolchain is for Aldebaran naoqi
if(CMAKE_TOOLCHAIN_FILE AND I_AM_A_ROBOT)
Expand Down
2 changes: 1 addition & 1 deletion apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(ViSP-apps)

Expand Down
2 changes: 1 addition & 1 deletion apps/calibration/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project(apps-calibration)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_vision visp_io OPTIONAL_COMPONENTS visp_gui visp_robot visp_sensor)

Expand Down
2 changes: 1 addition & 1 deletion cmake/VISPGenerateConfigScript.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ set(TARGET_LOCATION_${item} \"${item}${VISP_VERSION_MAJOR}${VISP_VERSION_MINOR}$
# =============================================================================
else() # DEFINED CMAKE_HELPER_SCRIPT

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
include("${CMAKE_HELPER_SCRIPT}")
include("${VISP_SOURCE_DIR}/cmake/VISPUtils.cmake")

Expand Down
2 changes: 1 addition & 1 deletion demo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(ViSP-demo)

Expand Down
2 changes: 1 addition & 1 deletion demo/wireframe-simulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(demo-wireframe-simulator)

Expand Down
2 changes: 1 addition & 1 deletion doc/tutorial/bridge/matlab/tutorial-visp-matlab.dox
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ In order to build a source code that mix ViSP and MATLAB you should first create
find ViSP and MATLAB. In the following example we consider the case of the tutorial-matlab.cpp source file.

\code
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(visp-matlab)

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 @@ -305,7 +305,7 @@ $ more CMakeLists.txt
\code
project(example-dummy)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_core visp_robot)

Expand Down Expand Up @@ -409,7 +409,7 @@ $ cd $VISP_WS/my-project
$ more CMakeLists.txt
\endcode
\code
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-dummy)

Expand Down
1 change: 1 addition & 0 deletions doc/tutorial/rendering/tutorial-panda3d.dox
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ vpPanda3DBaseRenderer, which implements basic functions for a panda renderer.

- Hereafter you will find the instructions to build and install Panda3D from source on Ubuntu 22.04
\code{.sh}
$ sudo apt install python3-pip
$ mkdir -p $VISP_WS/3rdparty/panda3d
$ cd $VISP_WS/3rdparty/panda3d
$ git clone https://github.com/panda3d/panda3d
Expand Down
4 changes: 2 additions & 2 deletions doc/tutorial/started/tutorial-getting-started.dox
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ example. A minimalistic `CMakeLists.txt` should contain the following lines.

Open your editor and copy/paste the following lines in `VISP_WS/started/CMakeLists.txt` file.
\code
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(tutorial-image)

Expand All @@ -248,7 +248,7 @@ The `find_package()` CMake command searches for a `VISPConfig.cmake` file that w

Note that the previous `CMakeLists.txt` file can also be:
\code
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(tutorial-image)

Expand Down
28 changes: 28 additions & 0 deletions doc/tutorial/supported-third-parties/supported-third-parties.dox
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,34 @@ $ sudo apt-get install libpng-dev
$ su -c "yum install libpng-devel"
\endverbatim

\section soft_ar 3D Rendering and Augmented Reality

These are the optional 3rd-parties supported by ViSP in \ref module_ar for 3D Rendering and Augmented Reality.

\subsection soft_ar_Ogre3D Ogre3D

- <b>Ubuntu or debian installation since Ubuntu 24.04</b>
\code{.sh}
$ sudo apt-get install libogre-1.12-dev libois-dev
\endcode
- <b>Ubuntu or debian installation for Ubuntu 22.04 or before</b>
\code{.sh}
$ sudo apt-get install libogre-1.9-dev libois-dev
\endcode
- <b>Fedora or RedHat installation</b>
\code{.sh}
$ su -c "yum install ogre-devel ogre-samples ois-devel"
\endcode

\subsection soft_ar_Panda3D Panda3D

Panda3D installation instructions are provided in \ref tutorial-panda3d.
- <b>\ref tutorial-panda3d-install-ubuntu</b>

- <b>\ref tutorial-panda3d-install-macos</b>

- <b>\ref tutorial-panda3d-install-windows</b>

\section soft_robot Robot Control

The following optional third-parties are used in \ref module_robot to enable the robot arms usage supported by ViSP.
Expand Down
2 changes: 1 addition & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(ViSP-examples)

Expand Down
2 changes: 1 addition & 1 deletion example/calibration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

project(example-calibration)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_core visp_vision visp_gui visp_io)

Expand Down
2 changes: 1 addition & 1 deletion example/coin-simulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-coin-simulator)

Expand Down
2 changes: 1 addition & 1 deletion example/device/display/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

project(example-device-display)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_core visp_gui visp_io)

Expand Down
2 changes: 1 addition & 1 deletion example/device/framegrabber/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-device-framegrabber)

Expand Down
2 changes: 1 addition & 1 deletion example/device/kinect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

project(example-device-kinect)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_core visp_sensor visp_gui)

Expand Down
2 changes: 1 addition & 1 deletion example/device/laserscanner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-device-laserscanner)

Expand Down
2 changes: 1 addition & 1 deletion example/device/light/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

project(example-device-laserscanner)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_core visp_robot visp_io)

Expand Down
2 changes: 1 addition & 1 deletion example/direct-visual-servoing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-direct-vvs)

Expand Down
2 changes: 1 addition & 1 deletion example/homography/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

project(example-homography)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_core visp_vision visp_io)

Expand Down
2 changes: 1 addition & 1 deletion example/image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-image)

Expand Down
2 changes: 1 addition & 1 deletion example/kalman/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-kalman)

Expand Down
2 changes: 1 addition & 1 deletion example/manual/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-manual)

Expand Down
3 changes: 1 addition & 2 deletions example/manual/geometric-features/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(GeometricFeatures)

Expand All @@ -8,4 +8,3 @@ if(VISP_FOUND)
endif()

add_executable(manGeometricFeatures manGeometricFeatures.cpp)

2 changes: 1 addition & 1 deletion example/manual/hello-world/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project(HelloWorld)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED)
if(VISP_FOUND)
Expand Down
3 changes: 1 addition & 2 deletions example/manual/image-manipulation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(ImageManipulation)

Expand All @@ -12,4 +12,3 @@ add_executable(manGrab1394 manGrab1394.cpp)
add_executable(manGrabDirectShow manGrabDirectShow.cpp)
add_executable(manGrabDisk manGrabDisk.cpp)
add_executable(manGrabV4l2 manGrabV4l2.cpp)

4 changes: 1 addition & 3 deletions example/manual/moments/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(man-moment)

Expand All @@ -8,5 +8,3 @@ if(VISP_FOUND)
endif()

add_executable(manServoMomentsSimple manServoMomentsSimple.cpp)


2 changes: 1 addition & 1 deletion example/manual/ogre/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(OgreTutorial)

Expand Down
3 changes: 1 addition & 2 deletions example/manual/simulation/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(ImageManipulation)

Expand All @@ -10,4 +10,3 @@ endif()
add_executable(manServo4PointsDisplay manServo4PointsDisplay.cpp)
add_executable(manSimu4Dots manSimu4Dots.cpp)
add_executable(manSimu4Points manSimu4Points.cpp)

2 changes: 1 addition & 1 deletion example/math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-math)

Expand Down
2 changes: 1 addition & 1 deletion example/moments/image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

project(example-moments-image)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_core visp_vs visp_robot visp_gui)

Expand Down
2 changes: 1 addition & 1 deletion example/moments/points/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-moments-points)

Expand Down
2 changes: 1 addition & 1 deletion example/moments/polygon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

project(example-moments-polygon)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_core visp_vs visp_robot visp_gui)

Expand Down
2 changes: 1 addition & 1 deletion example/ogre-simulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-ogre-simulator)

Expand Down
2 changes: 1 addition & 1 deletion example/parse-argv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

project(example-parse-argv)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

find_package(VISP REQUIRED visp_core visp_io)

Expand Down
2 changes: 1 addition & 1 deletion example/particle-filter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-kalman)

Expand Down
2 changes: 1 addition & 1 deletion example/pose-estimation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#
#############################################################################

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

project(example-pose-estimation)

Expand Down
2 changes: 1 addition & 1 deletion example/reflex-takktile/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

project(example-reflex-takktile)

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)

if(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore)
set(WINRT TRUE)
Expand Down
Loading
Loading