if [ "${OutputType}" = "shared release" ];
then
cmake -DCMAKE_BUILD_TYPE=Release -DTARGET_TYPE_STATIC=OFF .
make clean all
tar -zcvf Rosemary_Linux_Release_shared_v${ProductVersion}_${BUILD_NUMBER}.tar.gz package/include package/lib/shared \
package/lib/static/libSGASN.a
else
cmake -DCMAKE_BUILD_TYPE=Release -DTARGET_TYPE_STATIC=ON .
make clean all
tar -zcvf Rosemary_Linux_Release_static_v${ProductVersion}_${BUILD_NUMBER}.tar.gz package/include package/lib/static
fi