mirror of https://github.com/axmolengine/axmol.git
Merge pull request #8662 from dabingnn/v3_fixLinuxConsole
Fix lua cocos console on linux
This commit is contained in:
commit
e545333a05
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue