diff --git a/templates/cpp-template-default/CMakeLists.txt b/templates/cpp-template-default/CMakeLists.txt index de981a02ef..bbc1a303b7 100644 --- a/templates/cpp-template-default/CMakeLists.txt +++ b/templates/cpp-template-default/CMakeLists.txt @@ -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)