Fixed HelloCpp Linking on Linux

This commit is contained in:
martell 2013-12-02 07:10:37 +00:00
parent 4f0f3f3235
commit 06ff1bc594
1 changed files with 25 additions and 3 deletions

View File

@ -149,6 +149,26 @@ add_library(cocos2d STATIC
) )
if(WIN32) if(WIN32)
if(MINGW)
set(COCOS_LINK
z
jpeg
png
webp
tiff
glfw3
glew32
opengl32
iconv
freetype
bz2
)
else()
set(COCOS_LINK set(COCOS_LINK
libjpeg libjpeg
libpng libpng
@ -161,19 +181,21 @@ set(COCOS_LINK
libiconv libiconv
libzlib libzlib
) )
endif()
elseif(APPLE) elseif(APPLE)
else() else()
set(COCOS_LINK set(COCOS_LINK
jpeg jpeg
png
webp webp
tiff tiff
freetype freetype
pthread
fontconfig fontconfig
png
pthread
glfw glfw
gles
GLEW GLEW
GL GL
X11 X11