Skip to content

Instantly share code, notes, and snippets.

@PeterMitrano
Created July 15, 2015 18:46
Show Gist options
  • Save PeterMitrano/d666b9d855689e14ecf6 to your computer and use it in GitHub Desktop.
Save PeterMitrano/d666b9d855689e14ecf6 to your computer and use it in GitHub Desktop.
build.gradle with gazebo libraries
def plugins = ['clock', 'dc_motor', 'encoder', 'gyro', 'limit_switch', 'pneumatic_piston', 'potentiometer', 'rangefinder', 'servo']
//iterate over each plugin
model {
components {
plugins.each {
"gz_$it"(NativeLibrarySpec){
sources {
cpp {
source {
srcDirs '../gz_msgs/build/generated'
include 'msgs.h'
}
exportedHeaders {
srcDirs '/usr/include/gazebo-5.1', '/usr/include/sdformat-2.3'
include '**/*.h'
}
lib project: ':simulation:gz_msgs', library: 'gz_msgs'
lib library: 'gazebo_transport'
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment