툴/CMAKE

cmke 빌드

우끼우끼몽키 2015. 11. 13. 12:32

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