Skip to content

Commit

Permalink
update librealsense minimal cmake version to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az committed May 13, 2024
1 parent a5bec4d commit f60ef55
Show file tree
Hide file tree
Showing 76 changed files with 116 additions and 166 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

# Xenial requires 3.5, Bionic 3.10...
cmake_minimum_required(VERSION 3.1.0)
cmake_minimum_required(VERSION 3.8)

set( LRS_TARGET realsense2 )
project( ${LRS_TARGET} LANGUAGES CXX C )
Expand Down
4 changes: 2 additions & 2 deletions common/fw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.1.3)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(fw)

Expand Down
5 changes: 2 additions & 3 deletions examples/C/color/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamples-Color)

Expand Down
5 changes: 2 additions & 3 deletions examples/C/depth/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 20192024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamples-Depth)

Expand Down
5 changes: 2 additions & 3 deletions examples/C/distance/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamples-Distance)

Expand Down
4 changes: 2 additions & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

# Save the command line compile commands in the build output
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
Expand Down
5 changes: 2 additions & 3 deletions examples/align-advanced/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesAlignAdvanced)

Expand Down
3 changes: 1 addition & 2 deletions examples/align-gl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2024 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesAlignGl )

Expand Down
5 changes: 2 additions & 3 deletions examples/align/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesAlign)

Expand Down
5 changes: 2 additions & 3 deletions examples/callback/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(rs-callback)

Expand Down
5 changes: 2 additions & 3 deletions examples/capture/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesCapture)

Expand Down
4 changes: 2 additions & 2 deletions examples/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(hello_librealsense2)

Expand Down
2 changes: 1 addition & 1 deletion examples/cmake/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Install the SDK or build it from source ([Linux](https://github.com/IntelRealSe

Set minimum required CMake version
```
cmake_minimum_required(VERSION 3.1.0)
cmake_minimum_required(VERSION 3.8)
```

Name the project, in this sample the project name will be also the executable name
Expand Down
5 changes: 2 additions & 3 deletions examples/gl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesGL)

Expand Down
5 changes: 2 additions & 3 deletions examples/hdr/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2020 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2020-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesHdr)

Expand Down
5 changes: 2 additions & 3 deletions examples/hello-realsense/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesHelloRealSense)

Expand Down
5 changes: 2 additions & 3 deletions examples/measure/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesMeasure)

Expand Down
5 changes: 2 additions & 3 deletions examples/motion/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesMotion)

Expand Down
5 changes: 2 additions & 3 deletions examples/multicam/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesMulticam)

Expand Down
5 changes: 2 additions & 3 deletions examples/pointcloud/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesPointcloud)

Expand Down
5 changes: 2 additions & 3 deletions examples/post-processing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesPost-Processing)

Expand Down
5 changes: 2 additions & 3 deletions examples/record-playback/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesRecord-Playback)

Expand Down
5 changes: 2 additions & 3 deletions examples/save-to-disk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesSaveToDisk)

Expand Down
5 changes: 2 additions & 3 deletions examples/sensor-control/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesSensorControl)

Expand Down
5 changes: 2 additions & 3 deletions examples/software-device/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseExamplesSoftwareDevice)

Expand Down
4 changes: 2 additions & 2 deletions src/gl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.

cmake_minimum_required(VERSION 2.8.9...3.20.5)
cmake_minimum_required(VERSION 3.8)

project(realsense2-gl)

Expand Down
2 changes: 1 addition & 1 deletion third-party/glfw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.8)

project(GLFW C)

Expand Down
4 changes: 2 additions & 2 deletions third-party/realdds/py/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2022 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2022-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)
project( pyrealdds )

set( PYREALDDS_FILES
Expand Down
2 changes: 1 addition & 1 deletion third-party/realsense-file/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.9...3.20.5)
cmake_minimum_required(VERSION 3.8)

project(realsense-file)

Expand Down
2 changes: 1 addition & 1 deletion third-party/realsense-file/rosbag/config.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8...3.20.5)
cmake_minimum_required(VERSION 3.8)

include(${CMAKE_CURRENT_LIST_DIR}/console_bridge/config.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/rosbag_storage/config.cmake)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8...3.20.5)
cmake_minimum_required(VERSION 3.8)

set(HEADER_FILES_CONSOLE_BRIDGE
${CMAKE_CURRENT_LIST_DIR}/include/console_bridge/console.h
Expand Down
2 changes: 1 addition & 1 deletion third-party/realsense-file/rosbag/cpp_common/config.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3...3.20.5)
cmake_minimum_required(VERSION 3.8)

set(HEADER_FILES_CPP_COMMON
${CMAKE_CURRENT_LIST_DIR}/include/ros/cpp_common_decl.h
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3...3.20.5)
cmake_minimum_required(VERSION 3.8)

set(HEADER_FILES_CPP_COMMON
${CMAKE_CURRENT_LIST_DIR}/include/ros/cpp_common_decl.h
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3...3.20.5)
cmake_minimum_required(VERSION 3.8)

set(HEADER_FILES_ROSCPP_SERIALIZATION
${CMAKE_CURRENT_LIST_DIR}/include/ros/roscpp_serialization_macros.h
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3...3.20.5)
cmake_minimum_required(VERSION 3.8)

set(HEADER_FILES_ROSCPP_TRAITS
${CMAKE_CURRENT_LIST_DIR}/include/ros/builtin_message_traits.h
Expand Down
2 changes: 1 addition & 1 deletion third-party/realsense-file/rosbag/roslz4/config.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3...3.20.5)
cmake_minimum_required(VERSION 3.8)

set(HEADER_FILES_ROSLZ4
${CMAKE_CURRENT_LIST_DIR}/include/roslz4/lz4s.h
Expand Down
2 changes: 1 addition & 1 deletion third-party/realsense-file/rosbag/rostime/config.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.3...3.20.5)
cmake_minimum_required(VERSION 3.8)

set(HEADER_FILES_ROSTIME
${CMAKE_CURRENT_LIST_DIR}/include/ros/duration.h
Expand Down
4 changes: 2 additions & 2 deletions third-party/rsutils/py/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2022 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2022-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)
project( pyrsutils )

set( DEPENDENCIES rsutils )
Expand Down
5 changes: 2 additions & 3 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

# Save the command line compile commands in the build output
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
Expand Down
5 changes: 2 additions & 3 deletions tools/benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseToolsBenchmark)

Expand Down
5 changes: 2 additions & 3 deletions tools/convert/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseToolsConvert)
set(RS_TARGET rs-convert)
Expand Down
5 changes: 2 additions & 3 deletions tools/data-collect/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
# minimum required cmake version: 3.1.0
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project(RealsenseToolsDataCollect)

Expand Down
4 changes: 2 additions & 2 deletions tools/dds/dds-adapter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2023 Intel Corporation. All Rights Reserved.
cmake_minimum_required( VERSION 3.1.0 )
# Copyright(c) 2023-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required( VERSION 3.8 )
project( rs-dds-adapter )

set(TOOL_FILES
Expand Down
4 changes: 2 additions & 2 deletions tools/depth-quality/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2019 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.1.0)
# Copyright(c) 2019-2024 Intel Corporation. All Rights Reserved.
cmake_minimum_required(VERSION 3.8)

project( rs-depth-quality )

Expand Down
4 changes: 2 additions & 2 deletions tools/embed/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2021 Intel Corporation. All Rights Reserved.
# Copyright(c) 2021-2024 Intel Corporation. All Rights Reserved.

cmake_minimum_required(VERSION 3.1.0)
cmake_minimum_required(VERSION 3.8)

project(RealsenseToolsEmbed)

Expand Down
Loading

0 comments on commit f60ef55

Please sign in to comment.