fixed include of math on windows
parent
32e6be002d
commit
f6d5a788aa
|
@ -14,4 +14,6 @@ else()
|
||||||
add_library(lua SHARED ${SOURCE})
|
add_library(lua SHARED ${SOURCE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(UNIX)
|
||||||
target_link_libraries(lua m)
|
target_link_libraries(lua m)
|
||||||
|
endif()
|
|
@ -12,7 +12,7 @@ include_directories ("${PROJECT_SOURCE_DIR}/../")
|
||||||
#add any new generation dependencies here
|
#add any new generation dependencies here
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg tolua
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/AllToLua.pkg tolua
|
||||||
)
|
)
|
||||||
|
|
||||||
#add cpp files here
|
#add cpp files here
|
||||||
add_library(Bindings PluginManager LuaState WebPlugin Bindings ManualBindings LuaWindow Plugin PluginLua WebPlugin)
|
add_library(Bindings PluginManager LuaState WebPlugin Bindings ManualBindings LuaWindow Plugin PluginLua WebPlugin)
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,15 @@ file(GLOB_RECURSE SOURCE
|
||||||
|
|
||||||
include_directories("${PROJECT_SOURCE_DIR}")
|
include_directories("${PROJECT_SOURCE_DIR}")
|
||||||
|
|
||||||
|
ADD_CUSTOM_COMMAND(
|
||||||
|
#add any new generated bindings here
|
||||||
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Bindings/Bindings.cpp ${CMAKE_CURRENT_BINARY_DIR}/Bindings/Bindings.h
|
||||||
|
#command execuded to regerate bindings
|
||||||
|
COMMAND tolua -L virtual_method_hooks.lua -o Bindings/Bindings.cpp -H Bindings/Bindings.h AllToLua.pkg
|
||||||
|
#add any new generation dependencies here
|
||||||
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/virtual_method_hooks.lua ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/AllToLua.pkg tolua
|
||||||
|
)
|
||||||
|
|
||||||
source_group("" FILES ${SOURCE})
|
source_group("" FILES ${SOURCE})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue