Move sidecar lua load to prior to script load. This should let the script use it for dependencies.
if(WIN32 AND NOT UNIX) file(GLOB DLLs *.dll) file(GLOB ICOs *.ico) install(FILES ${DLLs} ${ICOs} DESTINATION ${target_library_install_dir})endif(WIN32 AND NOT UNIX)