Skip to content

Commit d12caf6

Browse files
authored
Merge 613de94 into 1dccfc4
2 parents 1dccfc4 + 613de94 commit d12caf6

File tree

6 files changed

+37
-37
lines changed

6 files changed

+37
-37
lines changed

CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ find_package(ignition-cmake3 REQUIRED)
1313
#============================================================================
1414
# Configure the project
1515
#============================================================================
16-
ign_configure_project(
16+
gz_configure_project(
1717
REPLACE_IGNITION_INCLUDE_PATH gz/sensors
1818
VERSION_SUFFIX pre1)
1919

@@ -38,26 +38,26 @@ message(STATUS "\n\n-- ====== Finding Dependencies ======")
3838
#--------------------------------------
3939
# Find Protobuf
4040
set(REQ_PROTOBUF_VER 3)
41-
ign_find_package(IgnProtobuf
41+
gz_find_package(IgnProtobuf
4242
VERSION ${REQ_PROTOBUF_VER}
4343
REQUIRED
4444
PRETTY Protobuf)
4545

4646
#--------------------------------------
4747
# Find ignition-math
48-
ign_find_package(ignition-math7 REQUIRED)
48+
gz_find_package(ignition-math7 REQUIRED)
4949
set(IGN_MATH_VER ${ignition-math7_VERSION_MAJOR})
5050

5151
#--------------------------------------
5252
# Find ignition-common
53-
ign_find_package(ignition-common5
53+
gz_find_package(ignition-common5
5454
COMPONENTS profiler
5555
REQUIRED)
5656
set(IGN_COMMON_VER ${ignition-common5_VERSION_MAJOR})
5757

5858
#--------------------------------------
5959
# Find ignition-transport
60-
ign_find_package(ignition-transport12 REQUIRED)
60+
gz_find_package(ignition-transport12 REQUIRED)
6161
set(IGN_TRANSPORT_VER ${ignition-transport12_VERSION_MAJOR})
6262

6363
#--------------------------------------
@@ -68,7 +68,7 @@ if ((NOT ${CMAKE_VERSION} VERSION_LESS 3.11) AND (NOT OpenGL_GL_PREFERENCE))
6868
set(OpenGL_GL_PREFERENCE "GLVND")
6969
endif()
7070

71-
ign_find_package(ignition-rendering7 REQUIRED OPTIONAL_COMPONENTS ogre ogre2)
71+
gz_find_package(ignition-rendering7 REQUIRED OPTIONAL_COMPONENTS ogre ogre2)
7272
set(IGN_RENDERING_VER ${ignition-rendering7_VERSION_MAJOR})
7373

7474
if (TARGET ignition-rendering${IGN_RENDERING_VER}::ogre)
@@ -83,31 +83,31 @@ endif()
8383

8484
#--------------------------------------
8585
# Find ignition-msgs
86-
ign_find_package(ignition-msgs9 REQUIRED)
86+
gz_find_package(ignition-msgs9 REQUIRED)
8787
set(IGN_MSGS_VER ${ignition-msgs9_VERSION_MAJOR})
8888

8989
#--------------------------------------
9090
# Find SDFormat
91-
ign_find_package(sdformat13 REQUIRED)
91+
gz_find_package(sdformat13 REQUIRED)
9292
set(SDF_VER ${sdformat13_VERSION_MAJOR})
9393

9494
#============================================================================
9595
# Configure the build
9696
#============================================================================
97-
ign_configure_build(QUIT_IF_BUILD_ERRORS)
97+
gz_configure_build(QUIT_IF_BUILD_ERRORS)
9898

9999
#============================================================================
100100
# Create package information
101101
#============================================================================
102-
ign_create_packages()
102+
gz_create_packages()
103103

104104
#============================================================================
105105
# Configure documentation
106106
#============================================================================
107107
configure_file(${CMAKE_SOURCE_DIR}/api.md.in ${CMAKE_BINARY_DIR}/api.md)
108108
configure_file(${CMAKE_SOURCE_DIR}/tutorials.md.in ${CMAKE_BINARY_DIR}/tutorials.md)
109109

110-
ign_create_docs(
110+
gz_create_docs(
111111
API_MAINPAGE_MD "${CMAKE_BINARY_DIR}/api.md"
112112
TUTORIALS_MAINPAGE_MD "${CMAKE_BINARY_DIR}/tutorials.md")
113113

include/gz/sensors/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ign_install_all_headers()
1+
gz_install_all_headers()

src/CMakeLists.txt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (MSVC)
3737
endif()
3838

3939
# Create the library target.
40-
ign_create_core_library(SOURCES ${sources} CXX_STANDARD 14)
40+
gz_create_core_library(SOURCES ${sources} CXX_STANDARD 14)
4141

4242
target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME}
4343
PUBLIC
@@ -51,14 +51,14 @@ target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME}
5151
)
5252
target_compile_definitions(${PROJECT_LIBRARY_TARGET_NAME} PUBLIC DepthPoints_EXPORTS)
5353

54-
ign_add_component(rendering SOURCES ${rendering_sources} GET_TARGET_NAME rendering_target)
54+
gz_add_component(rendering SOURCES ${rendering_sources} GET_TARGET_NAME rendering_target)
5555
target_link_libraries(${rendering_target}
5656
PUBLIC
5757
ignition-rendering${IGN_RENDERING_VER}::ignition-rendering${IGN_RENDERING_VER}
5858
)
5959

6060
set(camera_sources CameraSensor.cc)
61-
ign_add_component(camera SOURCES ${camera_sources} GET_TARGET_NAME camera_target)
61+
gz_add_component(camera SOURCES ${camera_sources} GET_TARGET_NAME camera_target)
6262
# custom compile definitions since the one provided automatically is versioned and will
6363
# make the code need to change with every major version
6464
target_compile_definitions(${camera_target} PUBLIC CameraSensor_EXPORTS)
@@ -71,7 +71,7 @@ target_link_libraries(${camera_target}
7171
)
7272

7373
set(depth_camera_sources DepthCameraSensor.cc)
74-
ign_add_component(depth_camera SOURCES ${depth_camera_sources} GET_TARGET_NAME depth_camera_target)
74+
gz_add_component(depth_camera SOURCES ${depth_camera_sources} GET_TARGET_NAME depth_camera_target)
7575
target_compile_definitions(${depth_camera_target} PUBLIC DepthCameraSensor_EXPORTS)
7676
target_link_libraries(${depth_camera_target}
7777
PRIVATE
@@ -81,7 +81,7 @@ target_link_libraries(${depth_camera_target}
8181
)
8282

8383
set(lidar_sources Lidar.cc)
84-
ign_add_component(lidar SOURCES ${lidar_sources} GET_TARGET_NAME lidar_target)
84+
gz_add_component(lidar SOURCES ${lidar_sources} GET_TARGET_NAME lidar_target)
8585
target_compile_definitions(${lidar_target} PUBLIC Lidar_EXPORTS)
8686
target_link_libraries(${lidar_target}
8787
PUBLIC
@@ -92,7 +92,7 @@ target_link_libraries(${lidar_target}
9292
)
9393

9494
set(gpu_lidar_sources GpuLidarSensor.cc)
95-
ign_add_component(gpu_lidar SOURCES ${gpu_lidar_sources} GET_TARGET_NAME gpu_lidar_target)
95+
gz_add_component(gpu_lidar SOURCES ${gpu_lidar_sources} GET_TARGET_NAME gpu_lidar_target)
9696
target_compile_definitions(${gpu_lidar_target} PUBLIC GpuLidarSensor_EXPORTS)
9797
target_link_libraries(${gpu_lidar_target}
9898
PRIVATE
@@ -102,7 +102,7 @@ target_link_libraries(${gpu_lidar_target}
102102
)
103103

104104
set(logical_camera_sources LogicalCameraSensor.cc)
105-
ign_add_component(logical_camera SOURCES ${logical_camera_sources} GET_TARGET_NAME logical_camera_target)
105+
gz_add_component(logical_camera SOURCES ${logical_camera_sources} GET_TARGET_NAME logical_camera_target)
106106
target_compile_definitions(${logical_camera_target} PUBLIC LogicalCameraSensor_EXPORTS)
107107
target_link_libraries(${logical_camera_target}
108108
PRIVATE
@@ -111,25 +111,25 @@ target_link_libraries(${logical_camera_target}
111111
)
112112

113113
set(magnetometer_sources MagnetometerSensor.cc)
114-
ign_add_component(magnetometer SOURCES ${magnetometer_sources} GET_TARGET_NAME magnetometer_target)
114+
gz_add_component(magnetometer SOURCES ${magnetometer_sources} GET_TARGET_NAME magnetometer_target)
115115

116116
set(imu_sources ImuSensor.cc)
117-
ign_add_component(imu SOURCES ${imu_sources} GET_TARGET_NAME imu_target)
117+
gz_add_component(imu SOURCES ${imu_sources} GET_TARGET_NAME imu_target)
118118

119119
set(force_torque_sources ForceTorqueSensor.cc)
120-
ign_add_component(force_torque SOURCES ${force_torque_sources} GET_TARGET_NAME force_torque_target)
120+
gz_add_component(force_torque SOURCES ${force_torque_sources} GET_TARGET_NAME force_torque_target)
121121

122122
set(altimeter_sources AltimeterSensor.cc)
123-
ign_add_component(altimeter SOURCES ${altimeter_sources} GET_TARGET_NAME altimeter_target)
123+
gz_add_component(altimeter SOURCES ${altimeter_sources} GET_TARGET_NAME altimeter_target)
124124

125125
set(air_pressure_sources AirPressureSensor.cc)
126-
ign_add_component(air_pressure SOURCES ${air_pressure_sources} GET_TARGET_NAME air_pressure_target)
126+
gz_add_component(air_pressure SOURCES ${air_pressure_sources} GET_TARGET_NAME air_pressure_target)
127127

128128
set(navsat_sources NavSatSensor.cc)
129-
ign_add_component(navsat SOURCES ${navsat_sources} GET_TARGET_NAME navsat_target)
129+
gz_add_component(navsat SOURCES ${navsat_sources} GET_TARGET_NAME navsat_target)
130130

131131
set(rgbd_camera_sources RgbdCameraSensor.cc)
132-
ign_add_component(rgbd_camera SOURCES ${rgbd_camera_sources} GET_TARGET_NAME rgbd_camera_target)
132+
gz_add_component(rgbd_camera SOURCES ${rgbd_camera_sources} GET_TARGET_NAME rgbd_camera_target)
133133
target_compile_definitions(${rgbd_camera_target} PUBLIC RgbdCameraSensor_EXPORTS)
134134
target_link_libraries(${rgbd_camera_target}
135135
PRIVATE
@@ -139,7 +139,7 @@ target_link_libraries(${rgbd_camera_target}
139139
)
140140

141141
set(thermal_camera_sources ThermalCameraSensor.cc)
142-
ign_add_component(thermal_camera SOURCES ${thermal_camera_sources} GET_TARGET_NAME thermal_camera_target)
142+
gz_add_component(thermal_camera SOURCES ${thermal_camera_sources} GET_TARGET_NAME thermal_camera_target)
143143
target_link_libraries(${thermal_camera_target}
144144
PRIVATE
145145
${camera_target}
@@ -148,7 +148,7 @@ target_link_libraries(${thermal_camera_target}
148148
)
149149

150150
set(segmentation_camera_sources SegmentationCameraSensor.cc)
151-
ign_add_component(segmentation_camera SOURCES ${segmentation_camera_sources} GET_TARGET_NAME segmentation_camera_target)
151+
gz_add_component(segmentation_camera SOURCES ${segmentation_camera_sources} GET_TARGET_NAME segmentation_camera_target)
152152
target_compile_definitions(${segmentation_camera_target} PUBLIC SegmentationCameraSensor_EXPORTS)
153153
target_link_libraries(${segmentation_camera_target}
154154
PRIVATE
@@ -158,7 +158,7 @@ target_link_libraries(${segmentation_camera_target}
158158
)
159159

160160
set(wide_angle_camera_sources WideAngleCameraSensor.cc)
161-
ign_add_component(wide_angle_camera SOURCES ${wide_angle_camera_sources} GET_TARGET_NAME wide_angle_camera_target)
161+
gz_add_component(wide_angle_camera SOURCES ${wide_angle_camera_sources} GET_TARGET_NAME wide_angle_camera_target)
162162
target_link_libraries(${wide_angle_camera_target}
163163
PRIVATE
164164
${camera_target}
@@ -167,10 +167,10 @@ target_link_libraries(${wide_angle_camera_target}
167167
)
168168

169169
# Build the unit tests.
170-
ign_build_tests(TYPE UNIT SOURCES ${gtest_sources} LIB_DEPS ${rendering_target})
170+
gz_build_tests(TYPE UNIT SOURCES ${gtest_sources} LIB_DEPS ${rendering_target})
171171

172172
# Build the unit tests that depend on components.
173-
ign_build_tests(TYPE UNIT SOURCES Lidar_TEST.cc LIB_DEPS ${lidar_target})
174-
ign_build_tests(TYPE UNIT SOURCES Camera_TEST.cc LIB_DEPS ${camera_target})
175-
ign_build_tests(TYPE UNIT SOURCES ImuSensor_TEST.cc LIB_DEPS ${imu_target})
173+
gz_build_tests(TYPE UNIT SOURCES Lidar_TEST.cc LIB_DEPS ${lidar_target})
174+
gz_build_tests(TYPE UNIT SOURCES Camera_TEST.cc LIB_DEPS ${camera_target})
175+
gz_build_tests(TYPE UNIT SOURCES ImuSensor_TEST.cc LIB_DEPS ${imu_target})
176176

test/integration/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if (UNIX AND NOT APPLE)
3434
endif()
3535

3636
if (DRI_TESTS)
37-
ign_build_tests(TYPE INTEGRATION
37+
gz_build_tests(TYPE INTEGRATION
3838
SOURCES
3939
${dri_tests}
4040
LIB_DEPS
@@ -50,7 +50,7 @@ if (DRI_TESTS)
5050
)
5151
endif()
5252

53-
ign_build_tests(TYPE INTEGRATION
53+
gz_build_tests(TYPE INTEGRATION
5454
SOURCES
5555
${tests}
5656
LIB_DEPS

test/performance/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set(tests
55

66
link_directories(${PROJECT_BINARY_DIR}/test)
77

8-
ign_build_tests(TYPE PERFORMANCE SOURCES ${tests})
8+
gz_build_tests(TYPE PERFORMANCE SOURCES ${tests})

test/regression/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set(tests
55

66
link_directories(${PROJECT_BINARY_DIR}/test)
77

8-
ign_build_tests(TYPE REGRESSION SOURCES ${tests})
8+
gz_build_tests(TYPE REGRESSION SOURCES ${tests})

0 commit comments

Comments
 (0)