diff --git a/hardware/is_camera/CMakeLists.txt b/hardware/is_camera/CMakeLists.txt index 7207ab0758..1b99a90057 100644 --- a/hardware/is_camera/CMakeLists.txt +++ b/hardware/is_camera/CMakeLists.txt @@ -41,7 +41,7 @@ find_package_handle_standard_args(V4L2 DEFAULT_MSG # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) catkin_package( diff --git a/localization/camera/CMakeLists.txt b/localization/camera/CMakeLists.txt index 5b1916f3c3..d4db4e4817 100644 --- a/localization/camera/CMakeLists.txt +++ b/localization/camera/CMakeLists.txt @@ -33,7 +33,7 @@ find_package(Boost REQUIRED COMPONENTS system) find_package(Eigen3 REQUIRED) # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) diff --git a/localization/depth_odometry/CMakeLists.txt b/localization/depth_odometry/CMakeLists.txt index 356637de3f..feeb4a88d2 100644 --- a/localization/depth_odometry/CMakeLists.txt +++ b/localization/depth_odometry/CMakeLists.txt @@ -36,7 +36,7 @@ find_package(catkin2 REQUIRED COMPONENTS ) # Find OpenCV3 -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) find_package(Eigen3 REQUIRED) diff --git a/localization/graph_localizer/CMakeLists.txt b/localization/graph_localizer/CMakeLists.txt index 2ca1532524..c3e4bf63ae 100644 --- a/localization/graph_localizer/CMakeLists.txt +++ b/localization/graph_localizer/CMakeLists.txt @@ -43,7 +43,7 @@ find_package(catkin2 REQUIRED COMPONENTS ) # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) catkin_package( diff --git a/localization/interest_point/CMakeLists.txt b/localization/interest_point/CMakeLists.txt index 2989c725ad..594889029f 100644 --- a/localization/interest_point/CMakeLists.txt +++ b/localization/interest_point/CMakeLists.txt @@ -32,7 +32,7 @@ find_package(Eigen3 REQUIRED) find_package(OpenMVG QUIET REQUIRED) # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) catkin_package( diff --git a/localization/localization_measurements/CMakeLists.txt b/localization/localization_measurements/CMakeLists.txt index b7a1840b4f..496be2d3ac 100644 --- a/localization/localization_measurements/CMakeLists.txt +++ b/localization/localization_measurements/CMakeLists.txt @@ -36,7 +36,7 @@ find_package(PCL REQUIRED COMPONENTS common features filters octree search) find_package(pcl_conversions REQUIRED) # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) # System dependencies are found with CMake's conventions diff --git a/localization/localization_node/CMakeLists.txt b/localization/localization_node/CMakeLists.txt index 3c87b8fca4..04549ce379 100644 --- a/localization/localization_node/CMakeLists.txt +++ b/localization/localization_node/CMakeLists.txt @@ -39,7 +39,7 @@ find_package(OpenMVG QUIET REQUIRED) find_package(Eigen3 REQUIRED) # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) catkin_package( diff --git a/localization/marker_tracking/CMakeLists.txt b/localization/marker_tracking/CMakeLists.txt index 96488dbed6..8b64981e89 100644 --- a/localization/marker_tracking/CMakeLists.txt +++ b/localization/marker_tracking/CMakeLists.txt @@ -43,7 +43,7 @@ find_package(Alvar REQUIRED) # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) catkin_package( diff --git a/localization/optimization_common/CMakeLists.txt b/localization/optimization_common/CMakeLists.txt index 640081a4d6..e6b83be7ca 100644 --- a/localization/optimization_common/CMakeLists.txt +++ b/localization/optimization_common/CMakeLists.txt @@ -29,7 +29,7 @@ find_package(catkin2 REQUIRED COMPONENTS find_package(Eigen3 REQUIRED) # Non-linear optimizer -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(Ceres REQUIRED) catkin_package( diff --git a/localization/sparse_mapping/CMakeLists.txt b/localization/sparse_mapping/CMakeLists.txt index 01b60dd23f..f8f0b46a72 100644 --- a/localization/sparse_mapping/CMakeLists.txt +++ b/localization/sparse_mapping/CMakeLists.txt @@ -42,7 +42,7 @@ find_package(dbow2 REQUIRED) # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) diff --git a/localization/vision_common/CMakeLists.txt b/localization/vision_common/CMakeLists.txt index 2d006e55e7..3f28e2bf2a 100644 --- a/localization/vision_common/CMakeLists.txt +++ b/localization/vision_common/CMakeLists.txt @@ -30,7 +30,7 @@ find_package(catkin2 REQUIRED COMPONENTS find_package(GTSAM REQUIRED) # Find OpenCV3 -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV331 REQUIRED) find_package(Eigen3 REQUIRED) diff --git a/localization/vive_localization/CMakeLists.txt b/localization/vive_localization/CMakeLists.txt index eb85937dd4..55f8a802da 100644 --- a/localization/vive_localization/CMakeLists.txt +++ b/localization/vive_localization/CMakeLists.txt @@ -37,7 +37,7 @@ find_package(catkin2 REQUIRED COMPONENTS find_package(Eigen3 REQUIRED) # Find OpenCV3 -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV 3.3.1 REQUIRED) # Non-linear optimizer diff --git a/management/executive/CMakeLists.txt b/management/executive/CMakeLists.txt index 0901a5d81b..ac8ef7e8a8 100644 --- a/management/executive/CMakeLists.txt +++ b/management/executive/CMakeLists.txt @@ -37,7 +37,7 @@ find_package(cmake_modules REQUIRED) find_package(Boost REQUIRED COMPONENTS system iostreams) # Find jsoncpp -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(JsonCpp REQUIRED) catkin_package( diff --git a/mobility/mapper/CMakeLists.txt b/mobility/mapper/CMakeLists.txt index 5db03a90e8..37b9f4f0d3 100644 --- a/mobility/mapper/CMakeLists.txt +++ b/mobility/mapper/CMakeLists.txt @@ -36,7 +36,7 @@ find_package(catkin2 REQUIRED COMPONENTS octomap ) -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(Octomap REQUIRED) # Find Eigen3 diff --git a/mobility/planner_qp/planner_qp/CMakeLists.txt b/mobility/planner_qp/planner_qp/CMakeLists.txt index 065d2a6acf..d74e56fd2d 100644 --- a/mobility/planner_qp/planner_qp/CMakeLists.txt +++ b/mobility/planner_qp/planner_qp/CMakeLists.txt @@ -23,7 +23,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../../cmake") # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../../cmake") find_package(OpenCV331 REQUIRED) find_package(JPS3D REQUIRED) diff --git a/mobility/planner_qp/traj_opt_pro/CMakeLists.txt b/mobility/planner_qp/traj_opt_pro/CMakeLists.txt index 44b0306832..9962de707f 100644 --- a/mobility/planner_qp/traj_opt_pro/CMakeLists.txt +++ b/mobility/planner_qp/traj_opt_pro/CMakeLists.txt @@ -46,7 +46,7 @@ find_package(catkin2 REQUIRED COMPONENTS find_package(Eigen3 REQUIRED) # Find OpenCV -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../../cmake") find_package(OpenCV331 REQUIRED) catkin_package( diff --git a/shared/config_reader/CMakeLists.txt b/shared/config_reader/CMakeLists.txt index f23ac4fcc1..972a2b8e41 100644 --- a/shared/config_reader/CMakeLists.txt +++ b/shared/config_reader/CMakeLists.txt @@ -29,7 +29,7 @@ find_package(catkin2 REQUIRED COMPONENTS ) ## System dependencies are found with CMake's conventions -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(Luajit20 REQUIRED) catkin_package( diff --git a/shared/jsonloader/CMakeLists.txt b/shared/jsonloader/CMakeLists.txt index 2e4e496228..d3c678c1ed 100644 --- a/shared/jsonloader/CMakeLists.txt +++ b/shared/jsonloader/CMakeLists.txt @@ -30,7 +30,7 @@ find_package(catkin2 REQUIRED COMPONENTS ) find_package(Eigen3 REQUIRED) -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(JsonCpp REQUIRED) catkin_package( diff --git a/simulation/CMakeLists.txt b/simulation/CMakeLists.txt index ac82d556e1..2c37703890 100644 --- a/simulation/CMakeLists.txt +++ b/simulation/CMakeLists.txt @@ -45,7 +45,7 @@ find_package(catkin2 REQUIRED COMPONENTS find_package(gazebo REQUIRED) # Find jsoncpp -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake") find_package(JsonCpp REQUIRED) # Add gazebo to the link directorries diff --git a/tools/calibration/CMakeLists.txt b/tools/calibration/CMakeLists.txt index ecaa6e19a5..e7093e55b1 100644 --- a/tools/calibration/CMakeLists.txt +++ b/tools/calibration/CMakeLists.txt @@ -31,7 +31,7 @@ find_package(catkin2 REQUIRED COMPONENTS ) # Find OpenCV3 -SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../../cmake") find_package(OpenCV 3.3.1 REQUIRED) find_package(Eigen3 REQUIRED)