Merge pull request #8662 from dabingnn/v3_fixLinuxConsole

Fix lua cocos console on linux
This commit is contained in:
minggo 2014-10-13 17:53:46 +08:00
commit e545333a05
1 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
set(APP_NAME HelloLua)
project (${APP_NAME})
include(cocos2d-x/build/BuildHelpers.CMakeLists.txt)
include(cocos2d-x/cmake/BuildHelpers.CMakeLists.txt)
option(DEBUG_MODE "Debug or release?" ON)
@ -78,6 +78,14 @@ link_directories(
${COCOS2D_ROOT}/external/chipmunk/prebuilt/linux/${ARCH_DIR}
)
# 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)