1
0
Fork 0

CMake generates Bindings when not existant (win)

This commit is contained in:
madmaxoft 2014-01-12 17:20:14 +01:00
parent 273db55bdf
commit 2ca06cc213
1 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,16 @@ if (NOT MSVC)
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)
FILE(GLOB FOLDER_FILES
"${PATH}/*.cpp"