Merge pull request #8661 from dabingnn/v3_fixLinuxConsole

add missed external module for cocos console on linux
This commit is contained in:
minggo 2014-10-13 17:22:15 +08:00
commit 3fdac6b3e7
1 changed files with 10 additions and 1 deletions

View File

@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
set(APP_NAME MyGame)
project (${APP_NAME})
include(cocos2d/build/BuildHelpers.CMakeLists.txt)
include(cocos2d/cmake/BuildHelpers.CMakeLists.txt)
option(DEBUG_MODE "Debug or release?" ON)
@ -120,6 +120,7 @@ include_directories(
${COCOS2D_ROOT}/extensions
${COCOS2D_ROOT}/external
${COCOS2D_ROOT}/external/edtaa3func
${COCOS2D_ROOT}/external/chipmunk/include/chipmunk
${COCOS2D_ROOT}/external/jpeg/include/linux
${COCOS2D_ROOT}/external/tiff/include/linux
${COCOS2D_ROOT}/external/webp/include/linux
@ -147,6 +148,14 @@ link_directories(
)
endif()
# build for 3rd party libraries
if(LINUX)
add_subdirectory(${COCOS2D_ROOT}/external/Box2D)
add_subdirectory(${COCOS2D_ROOT}/external/unzip)
add_subdirectory(${COCOS2D_ROOT}/external/xxhash)
add_subdirectory(${COCOS2D_ROOT}/external/tinyxml2)
endif()
# libcocos2d
add_subdirectory(${COCOS2D_ROOT}/cocos)