ivansafrin/Polycode — pull request #121 by mcclure (2012-06-27 07:35:13+00:00)
Title: Fix first-time build following removal of Lua build products from scm

Bindings build is broken right now on initial checkout from Github. This is because the generated files like PolycodeLUA.cpp were removed (yay!) but the CMakeLists was subtly written to require these files be present before the build starts.

Things I changed:

- Use ADD_DEPENDENCIES and PROPERTIES GENERATED as documented in
http://vtk.org/Wiki/CMake_FAQ#How_can_I_add_a_dependency_to_a_source_file_which_is_generated_in_a_subdirectory.3F

- More clearly specify where certain files are so CMake doesn't go looking for them in the binary directory following above

- A kinda odd change: Set create_lua_library to create directories before writing into them. This might not be necessary for everyone, but it's more reliable, and it's necessary for me because I keep stuff in Mercurial and Mercurial likes to aggressively delete empty directories :(