# Copyright 2023-2025 Ekumen, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

find_package(ament_cmake_ros REQUIRED)
find_package(sensor_msgs REQUIRED)

include_directories(include)

ament_add_ros_isolated_gmock(test_amcl test_amcl.cpp)
target_compile_options(test_amcl PRIVATE -Wno-deprecated-copy)
target_link_libraries(test_amcl beluga_ros)

ament_add_ros_isolated_gmock(test_messages test_messages.cpp)
target_compile_options(test_messages PRIVATE -Wno-deprecated-copy)
target_link_libraries(test_messages beluga_ros)

ament_add_ros_isolated_gmock(test_occupancy_grid test_occupancy_grid.cpp)
target_compile_options(test_occupancy_grid PRIVATE -Wno-deprecated-copy)
target_link_libraries(test_occupancy_grid beluga_ros)

ament_add_ros_isolated_gmock(test_tf2_sophus test_tf2_sophus.cpp)
target_compile_options(test_tf2_sophus PRIVATE -Wno-deprecated-copy)
target_link_libraries(test_tf2_sophus beluga_ros)

ament_add_ros_isolated_gmock(test_laser_scan test_laser_scan.cpp)
target_compile_options(test_laser_scan PRIVATE -Wno-deprecated-copy)
target_link_libraries(test_laser_scan beluga_ros)

ament_add_ros_isolated_gmock(test_particle_cloud test_particle_cloud.cpp)
target_compile_options(test_particle_cloud PRIVATE -Wno-deprecated-copy)
target_link_libraries(test_particle_cloud beluga_ros)

ament_add_ros_isolated_gmock(test_point_cloud test_point_cloud.cpp)
target_compile_options(test_point_cloud PRIVATE -Wno-deprecated-copy)
target_link_libraries(test_point_cloud beluga_ros)

ament_add_gmock(test_sparse_point_cloud test_sparse_point_cloud.cpp)
target_compile_options(test_sparse_point_cloud PRIVATE -Wno-deprecated-copy)
target_link_libraries(test_sparse_point_cloud beluga_ros)
