2014-03-10 17:10:08 +08:00
|
|
|
set(LUABINDING_SRC
|
|
|
|
auto/lua_cocos2dx_auto.cpp
|
|
|
|
auto/lua_cocos2dx_extension_auto.cpp
|
|
|
|
auto/lua_cocos2dx_studio_auto.cpp
|
|
|
|
auto/lua_cocos2dx_gui_auto.cpp
|
|
|
|
auto/lua_cocos2dx_spine_auto.cpp
|
|
|
|
auto/lua_cocos2dx_physics_auto.cpp
|
|
|
|
manual/tolua_fix.cpp
|
|
|
|
manual/CCLuaBridge.cpp
|
|
|
|
manual/CCLuaEngine.cpp
|
|
|
|
manual/CCLuaStack.cpp
|
|
|
|
manual/CCLuaValue.cpp
|
|
|
|
manual/Cocos2dxLuaLoader.cpp
|
|
|
|
manual/CCBProxy.cpp
|
|
|
|
manual/LuaOpengl.cpp
|
|
|
|
manual/LuaScriptHandlerMgr.cpp
|
|
|
|
manual/LuaBasicConversions.cpp
|
|
|
|
manual/lua_cocos2dx_manual.cpp
|
|
|
|
manual/lua_cocos2dx_extension_manual.cpp
|
|
|
|
manual/lua_cocos2dx_coco_studio_manual.cpp
|
|
|
|
manual/lua_cocos2dx_gui_manual.cpp
|
|
|
|
manual/lua_cocos2dx_spine_manual.cpp
|
|
|
|
manual/lua_cocos2dx_physics_manual.cpp
|
|
|
|
manual/lua_cocos2dx_deprecated.cpp
|
|
|
|
manual/lua_xml_http_request.cpp
|
|
|
|
manual/LuaSkeletonAnimation.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
auto
|
|
|
|
manual
|
|
|
|
../../editor-support/cocosbuilder
|
|
|
|
../../editor-support/cocostudio
|
|
|
|
../../editor-support/spine
|
|
|
|
../../gui
|
2014-03-10 17:39:54 +08:00
|
|
|
../../../external/lua/lua
|
|
|
|
../../../external/lua/tolua
|
2014-03-10 17:10:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_library(luabinding STATIC
|
|
|
|
${LUABINDING_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(luabinding
|
|
|
|
tolua
|
|
|
|
lua
|
|
|
|
spine
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(luabinding
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|
|
|
|
|