2013-11-02 19:14:29 +08:00
|
|
|
set(LUABINDING_SRC
|
|
|
|
auto-generated/lua-bindings/lua_cocos2dx_auto.cpp
|
|
|
|
auto-generated/lua-bindings/lua_cocos2dx_extension_auto.cpp
|
2013-11-05 17:48:29 +08:00
|
|
|
auto-generated/lua-bindings/lua_cocos2dx_studio_auto.cpp
|
2014-01-03 11:15:46 +08:00
|
|
|
auto-generated/lua-bindings/lua_cocos2dx_gui_auto.cpp
|
2013-12-25 16:42:40 +08:00
|
|
|
auto-generated/lua-bindings/lua_cocos2dx_spine_auto.cpp
|
2013-11-02 19:14:29 +08:00
|
|
|
lua/bindings/tolua_fix.c
|
|
|
|
lua/bindings/CCLuaBridge.cpp
|
|
|
|
lua/bindings/CCLuaEngine.cpp
|
|
|
|
lua/bindings/CCLuaStack.cpp
|
|
|
|
lua/bindings/CCLuaValue.cpp
|
|
|
|
lua/bindings/Cocos2dxLuaLoader.cpp
|
|
|
|
lua/bindings/CCBProxy.cpp
|
|
|
|
lua/bindings/LuaOpengl.cpp
|
|
|
|
lua/bindings/LuaScriptHandlerMgr.cpp
|
|
|
|
lua/bindings/LuaBasicConversions.cpp
|
|
|
|
lua/bindings/lua_cocos2dx_manual.cpp
|
|
|
|
lua/bindings/lua_cocos2dx_extension_manual.cpp
|
2013-11-12 15:25:47 +08:00
|
|
|
lua/bindings/lua_cocos2dx_coco_studio_manual.cpp
|
2014-01-03 11:15:46 +08:00
|
|
|
lua/bindings/lua_cocos2dx_gui_manual.cpp
|
2013-12-25 16:42:40 +08:00
|
|
|
lua/bindings/lua_cocos2dx_spine_manual.cpp
|
2013-11-02 19:14:29 +08:00
|
|
|
lua/bindings/lua_cocos2dx_deprecated.cpp
|
|
|
|
lua/bindings/lua_xml_http_request.cpp
|
2013-12-25 17:42:59 +08:00
|
|
|
lua/bindings/LuaSkeletonAnimation.cpp
|
2013-11-02 19:14:29 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
auto-generated/lua-bindings
|
|
|
|
lua/bindings
|
|
|
|
../../cocos/editor-support/cocosbuilder
|
|
|
|
../../cocos/editor-support/cocostudio
|
2013-12-25 17:22:14 +08:00
|
|
|
../../cocos/editor-support/spine
|
2013-11-12 15:25:47 +08:00
|
|
|
../../cocos/gui
|
2013-11-02 19:14:29 +08:00
|
|
|
../../external/lua/lua
|
|
|
|
../../external/lua/tolua
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_library(luabinding STATIC
|
|
|
|
${LUABINDING_SRC}
|
|
|
|
)
|
2013-11-04 13:10:04 +08:00
|
|
|
|
|
|
|
target_link_libraries(luabinding
|
|
|
|
tolua
|
|
|
|
lua
|
2013-12-25 16:42:40 +08:00
|
|
|
spine
|
2013-11-04 13:10:04 +08:00
|
|
|
)
|
2013-11-06 19:15:20 +08:00
|
|
|
|
|
|
|
set_target_properties(luabinding
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/lib"
|
|
|
|
)
|