Added a test sample, find script for cmake and compile option for both static and hared libraries targets