Skip to content
Snippets Groups Projects
Commit ecc8e6e0 authored by Johannes Mey's avatar Johannes Mey
Browse files

use correct import of SDF library

parent 9a4153ba
Branches noetic/main
No related tags found
No related merge requests found
...@@ -14,7 +14,8 @@ find_package(catkin REQUIRED COMPONENTS ...@@ -14,7 +14,8 @@ find_package(catkin REQUIRED COMPONENTS
## System dependencies are found with CMake's conventions ## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system) # find_package(Boost REQUIRED COMPONENTS system)
find_package(SDFormat) message("ERROR" "${CMAKE_MODULE_PATH}")
find_package(sdformat9 CONFIG REQUIRED)
# this is the last resort if the package cannot be found otherwise # this is the last resort if the package cannot be found otherwise
#find_package(PkgConfig REQUIRED) #find_package(PkgConfig REQUIRED)
...@@ -105,6 +106,11 @@ find_package(SDFormat) ...@@ -105,6 +106,11 @@ find_package(SDFormat)
## LIBRARIES: libraries you create in this project that dependent projects also need ## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need ## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need ## DEPENDS: system dependencies of this project that dependent projects also need
get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
catkin_package( catkin_package(
INCLUDE_DIRS include INCLUDE_DIRS include
LIBRARIES gazebo_zone_utility LIBRARIES gazebo_zone_utility
...@@ -120,8 +126,7 @@ catkin_package( ...@@ -120,8 +126,7 @@ catkin_package(
## Your package locations should be listed before other locations ## Your package locations should be listed before other locations
include_directories( include_directories(
include include
/usr/include/sdformat-9.2 ${SDFormat_INCLUDE_DIRS}
/usr/include/ignition/math6
${catkin_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS}
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment