Parsing plugin libraries path from superbuild for writing .plugin file
For running tests in cmb, we need to automatically load session plugins, which will bring in readers and operators for different models. Sometimes these tests will need multiple plugins from multiple locations, and we may not be able to copy these libraries into a single location.
The approach we currently use to solve this is to write out a .plugins file, which will include full paths for all these auto-load plugins. This .plugins file will be parsed by the application on start-up and the plugins listed will be loaded.
CMBSuperBuild MR#37 has a CMB_TEST_PLUGIN_PATHS variable as a default plugins-root-paths, and CMB MR#46 uses that variable to figure out the paths for the plugins to write out the .plugins file. The problem is that the actual path may be different under CMB_TEST_PLUGIN_PATHS for different platforms. We need a more robust way to parse the paths under CMB_TEST_PLUGIN_PATHS.