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(MINGW)
set(COCOS_LINK
z
jpeg
png
webp
tiff
glfw3
glew32
opengl32
iconv
freetype
bz2
)
else()
set(COCOS_LINK
libjpeg
libpng
@ -161,19 +181,21 @@ set(COCOS_LINK
libiconv
libzlib
)
endif()
elseif(APPLE)
else()
set(COCOS_LINK
jpeg
png
webp
tiff
freetype
pthread
fontconfig
png
pthread
glfw
gles
GLEW
GL
X11