Commits (2)
......@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0.2)
project(simulation_util)
# Compile as C++14
add_compile_options(-std=c++14)
add_compile_options(-std=c++17)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
......@@ -14,7 +14,8 @@ find_package(catkin REQUIRED COMPONENTS
## System dependencies are found with CMake's conventions
# 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
#find_package(PkgConfig REQUIRED)
......@@ -105,6 +106,11 @@ find_package(SDFormat)
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages 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(
INCLUDE_DIRS include
LIBRARIES gazebo_zone_utility
......@@ -120,8 +126,8 @@ catkin_package(
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
${SDFormat_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
## Declare a C++ library
......
......@@ -6,7 +6,7 @@
#include "GazeboZoneSpawner.h"
#include <sdformat-6.0/sdf/sdf.hh> // for sdf model parsing
#include <sdf/sdf.hh> // for sdf model parsing
#include <gazebo_msgs/SpawnModel.h> // service definition for spawning things in gazebo
#include <ros/ros.h>
#include <ros/package.h>
......@@ -142,4 +142,4 @@ void GazeboZoneSpawner::spawnPrimitive(const std::string &name, shape_msgs::Soli
} else {
ROS_ERROR("Failed to call service '/gazebo/spawn_sdf_model'");
}
}
\ No newline at end of file
}