diff --git a/template/multi-platform-cpp/CMakeLists.txt b/template/multi-platform-cpp/CMakeLists.txt index 641364914e..bda5031162 100644 --- a/template/multi-platform-cpp/CMakeLists.txt +++ b/template/multi-platform-cpp/CMakeLists.txt @@ -45,7 +45,7 @@ set(GAME_SRC Classes/HelloWorldScene.cpp ) -set(COCOS2D_ROOT ${CMAKE_SOURCE_DIR}/../..) +set(COCOS2D_ROOT ${CMAKE_SOURCE_DIR}/cocos2d) include_directories( ${COCOS2D_ROOT} diff --git a/template/multi-platform-cpp/proj.linux/build.sh b/template/multi-platform-cpp/proj.linux/build.sh new file mode 100644 index 0000000000..8392bd3363 --- /dev/null +++ b/template/multi-platform-cpp/proj.linux/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +mkdir build +cd build +cmake ../.. +make diff --git a/template/multi-platform-lua/CMakeLists.txt b/template/multi-platform-lua/CMakeLists.txt index 620e90ffe1..cd29120425 100644 --- a/template/multi-platform-lua/CMakeLists.txt +++ b/template/multi-platform-lua/CMakeLists.txt @@ -44,7 +44,7 @@ set(GAME_SRC Classes/AppDelegate.cpp ) -set(COCOS2D_ROOT ${CMAKE_SOURCE_DIR}/../..) +set(COCOS2D_ROOT ${CMAKE_SOURCE_DIR}/cocos2d) include_directories( Classes diff --git a/template/multi-platform-lua/proj.linux/build.sh b/template/multi-platform-lua/proj.linux/build.sh new file mode 100644 index 0000000000..8392bd3363 --- /dev/null +++ b/template/multi-platform-lua/proj.linux/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +mkdir build +cd build +cmake ../.. +make