Skip to content

Instantly share code, notes, and snippets.

@PeterMitrano
Created July 14, 2015 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeterMitrano/3bfde6ef7e2154e7d306 to your computer and use it in GitHub Desktop.
Save PeterMitrano/3bfde6ef7e2154e7d306 to your computer and use it in GitHub Desktop.
Build list of C++ Libraries
apply plugin: 'cpp'
def plugins = ['clock', 'dc_motor', 'encoder', 'gyro', 'limit_switch', 'plugins', 'pneumatic_piston', 'potentiometer', 'rangefinder', 'servo']
//iterate over each plugin
model {
components {
plugins.each{
it(NativeLibrarySpec){
sources {
cpp {
source {
srcDirs "${it}/src"
includes "**/.cpp"
}
exportedHeaders {
srcDirs "${it}/src"
includes "**/*.h"
}
lib library: 'gz_msgs'
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment