CMake: detect presence of third party libs.
CMake: add test.
Merge branch 'master' of github.com:PetterS/submodular