added tinyxml2 to the option of using external version

This commit is contained in:
martell 2014-06-30 07:43:47 +01:00
parent 421be753b3
commit 7fad8a4d0d
1 changed files with 4 additions and 8 deletions

View File

@ -43,14 +43,8 @@ option(BUILD_EDITOR_COCOSTUDIO "Build editor support for cocostudio" ON)
option(BUILD_EDITOR_COCOSBUILDER "Build editor support for cocosbuilder" ON) option(BUILD_EDITOR_COCOSBUILDER "Build editor support for cocosbuilder" ON)
option(BUILD_EXTERN_LIBS "Build Box2d, Chipmunk etc from source" ON) option(BUILD_EXTERN_LIBS "Build Box2d, Chipmunk etc from source" ON)
option(BUILD_CppTests "Only build TestCpp sample" ON) option(BUILD_CppTests "Only build TestCpp sample" ON)
option(BUILD_LIBS_LUA "Build lua libraries" ON)
if(NOT LINUX) option(BUILD_LuaTests "Only build TestLua sample" ON)
option(BUILD_LIBS_LUA "Build lua libraries" OFF)
option(BUILD_LuaTests "Only build TestLua sample" OFF)
else()
option(BUILD_LIBS_LUA "Build lua libraries" ON)
option(BUILD_LuaTests "Only build TestLua sample" ON)
endif()
if(DEBUG_MODE) if(DEBUG_MODE)
set(CMAKE_BUILD_TYPE DEBUG) set(CMAKE_BUILD_TYPE DEBUG)
@ -196,8 +190,10 @@ endif()
# unzip library # unzip library
add_subdirectory(external/unzip) add_subdirectory(external/unzip)
if(BUILD_EXTERN_LIBS)
# tinyxml2 library # tinyxml2 library
add_subdirectory(external/tinyxml2) add_subdirectory(external/tinyxml2)
endif()
# xxhash library # xxhash library
add_subdirectory(external/xxhash) add_subdirectory(external/xxhash)