diff --git a/cocos/CMakeLists.txt b/cocos/CMakeLists.txt index fe54a7e700..31b325f04b 100644 --- a/cocos/CMakeLists.txt +++ b/cocos/CMakeLists.txt @@ -48,18 +48,23 @@ include(network/CMakeLists.txt) include(audio/CMakeLists.txt) include(storage/CMakeLists.txt) +if(BUILD_EDITOR_COCOSBUILDER) include(editor-support/cocosbuilder/CMakeLists.txt) +set(COCOS_EDITOR_SUPPORT_SRC ${COCOS_EDITOR_SUPPORT_SRC} ${COCOS_CCB_SRC}) +endif(BUILD_EDITOR_COCOSBUILDER) + +if(BUILD_EDITOR_COCOSTUDIO) include(editor-support/cocostudio/CMakeLists.txt) +set(COCOS_EDITOR_SUPPORT_SRC ${COCOS_EDITOR_SUPPORT_SRC} ${COCOS_CS_SRC}) +endif(BUILD_EDITOR_COCOSTUDIO) + +if(BUILD_EDITOR_SPINE) include(editor-support/spine/CMakeLists.txt) +set(COCOS_EDITOR_SUPPORT_SRC ${COCOS_EDITOR_SUPPORT_SRC} ${COCOS_SPINE_SRC}) +endif(BUILD_EDITOR_SPINE) include(../extensions/CMakeLists.txt) -set(COCOS_EDITOR_SUPPORT_SRC - ${COCOS_CCB_SRC} - ${COCOS_CS_SRC} - ${COCOS_SPINE_SRC} -) - set(COCOS_SRC cocos2d.cpp ${COCOS_2D_SRC} ${COCOS_3D_SRC} @@ -98,6 +103,7 @@ endif() if(MINGW) find_package(Freetype REQUIRED) find_package(WebP REQUIRED) + find_package(Protobuf REQUIRED) #find_package(MiniZip REQUIRED) #${MINIZIP_INCLUDE_DIR} @@ -112,8 +118,9 @@ if(MINGW) message( STATUS "WEBP dirs: ${WEBP_INCLUDE_DIRS}") message( STATUS "FREETYPE dirs: ${FREETYPE_INCLUDE_DIRS}") message( STATUS "Chipmunk dirs: ${CHIPMUNK_INCLUDE_DIRS}") + message( STATUS "Protobuf dirs: ${PROTOBUF_INCLUDE_DIRS}") - include_directories(${FREETYPE_INCLUDE_DIRS} ${WEBP_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${CHIPMUNK_INCLUDE_DIRS}) + include_directories(${FREETYPE_INCLUDE_DIRS} ${WEBP_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${CHIPMUNK_INCLUDE_DIRS} ${PROTOBUF_INCLUDE_DIRS}) else()