Created
July 14, 2015 20:17
-
-
Save PeterMitrano/3bfde6ef7e2154e7d306 to your computer and use it in GitHub Desktop.
Build list of C++ Libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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