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
|
2014-03-11 21:36:00 +08:00
|
|
|
auto/lua_cocos2dx_ui_auto.cpp
|
2014-03-10 17:10:08 +08:00
|
|
|
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
|
2014-03-11 21:36:00 +08:00
|
|
|
manual/lua_cocos2dx_ui_manual.cpp
|
2014-03-10 17:10:08 +08:00
|
|
|
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
|
2014-03-11 21:36:00 +08:00
|
|
|
../../ui
|
2014-03-10 17:39:54 +08:00
|
|
|
../../../external/lua/lua
|
|
|
|
../../../external/lua/tolua
|
2014-06-04 11:50:04 +08:00
|
|
|
../../../external/xxtea
|
2014-03-10 17:10:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_library(luabinding STATIC
|
|
|
|
${LUABINDING_SRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(luabinding
|
|
|
|
tolua
|
|
|
|
lua
|
|
|
|
spine
|
2014-06-04 11:50:04 +08:00
|
|
|
xxtea
|
2014-03-10 17:10:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(luabinding
|
|
|
|
PROPERTIES
|
|
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
|
|
)
|
|
|
|
|