mirror of https://github.com/axmolengine/axmol.git
47 lines
1.2 KiB
CMake
47 lines
1.2 KiB
CMake
|
|
# default value for cocos2dx extensions modules to Build
|
|
# currently 7 extensions
|
|
# extensions dependicies: COCOSTUDIO may depend on spine & dragonBones if they are present in buildset
|
|
|
|
option(BUILD_EXTENSION_ASSETMANAGER "Build extension asset-manager" ON)
|
|
option(BUILD_EXTENSION_GUI "Build extension GUI" ON)
|
|
option(BUILD_EXTENSION_PARTICLE3D "Build extension Particle3D" ON)
|
|
option(BUILD_EXTENSION_PHYSICS_NODE "Build extension physics-nodes" ON)
|
|
|
|
option(BUILD_EXTENSION_SPINE "Build extension spine" ON)
|
|
option(BUILD_EXTENSION_DRAGONBONES "Build extension DragonBones" OFF)
|
|
|
|
option(BUILD_EXTENSION_COCOSTUDIO "Build extension cocostudio" ON)
|
|
|
|
message(STATUS "BUILD_EXTENSION_COCOSTUDIO:${BUILD_EXTENSION_COCOSTUDIO}")
|
|
|
|
if(BUILD_EXTENSION_ASSETMANAGER)
|
|
add_subdirectory(assets-manager)
|
|
endif()
|
|
|
|
if(BUILD_EXTENSION_GUI)
|
|
add_subdirectory(GUI)
|
|
endif()
|
|
|
|
if(BUILD_EXTENSION_PARTICLE3D)
|
|
add_subdirectory(Particle3D)
|
|
endif()
|
|
|
|
if(BUILD_EXTENSION_PHYSICS_NODE)
|
|
add_subdirectory(physics-nodes)
|
|
endif()
|
|
|
|
if(BUILD_EXTENSION_SPINE)
|
|
add_subdirectory(spine)
|
|
endif()
|
|
|
|
if(BUILD_EXTENSION_DRAGONBONES)
|
|
add_subdirectory(dragonbones)
|
|
endif()
|
|
|
|
if(BUILD_EXTENSION_COCOSTUDIO)
|
|
add_subdirectory(cocostudio)
|
|
endif()
|
|
|
|
message(STATUS "CC_EXTENSION_LIBS:${CC_EXTENSION_LIBS}")
|