<div dir="ltr">Hello,<div><br></div><div>I have come across a problem using CMake with SVN.</div><div>I have a src/shaders directory containing files with extension ".glsl". I need to create a rule to copy these files in my build directory, since my program will need them at runtime.</div>
<div><br></div><div>For now, i have:</div><div>ADD_CUSTOM_TARGET( install_shaders ALL ${CMAKE_COMMAND} -E copy_directory ${CMAKE_HOME_DIRECTORY}/shaders/ ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR} )<br></div><div><br>
</div><div>The problem is that _everything_ in src/shaders is copied to the build directory, including the hidden .svn directory! So now after running a make, i can't commit anything since SVN complains about having the same destination URL for src/shaders and the build directory.</div>
<div><br></div><div>I tried to fix it with:</div><div>ADD_CUSTOM_TARGET( install_shaders ALL ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/shaders/*.glsl ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR} )<br></div><div>
<br></div><div>But CMake reports an error.</div><div><br></div><div>I would really appreciate any possible help,</div><div>thanks a lot!</div></div>