CMake generates Bindings when not existant (win)
This commit is contained in:
parent
273db55bdf
commit
2ca06cc213
@ -27,6 +27,16 @@ if (NOT MSVC)
|
|||||||
|
|
||||||
else ()
|
else ()
|
||||||
|
|
||||||
|
# Generate the Bindings if they don't exist:
|
||||||
|
if (NOT EXISTS "${PROJECT_SOURCE_DIR}/Bindings/Bindings.cpp")
|
||||||
|
message("Bindings.cpp not found, generating now")
|
||||||
|
set(tolua_executable ${PROJECT_SOURCE_DIR}/Bindings/tolua++.exe)
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${tolua_executable} -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg
|
||||||
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/Bindings
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
function(includefolder PATH)
|
function(includefolder PATH)
|
||||||
FILE(GLOB FOLDER_FILES
|
FILE(GLOB FOLDER_FILES
|
||||||
"${PATH}/*.cpp"
|
"${PATH}/*.cpp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user