Windows Vista and newer do. On older versions create_symlink just does nothing...

Michael

On 6. Jul, 2009, at 17:37, Karol Krizka wrote:

Hi,

Thank you both for you suggestions. I think I will go with
execute_process and symlinks. Since the files are movies, they are quite
big and links are thus more efficient.

Just a quick, side, off-topic question. Does Windows support symlinks?
--
Cheers,
Karol Krizka

On Sun, 2009-07-05 at 20:25 +0200, Michael Wild wrote:
Or:

configure_file( path/to/old_file ${CMAKE_BINARY_DIR}/path/to/new_file
COPYONLY )


Michael

On 5. Jul, 2009, at 17:27, Adolfo Rodríguez wrote:

On Sun, Jul 5, 2009 at 5:14 PM, Karol Krizka <kkri...@gmail.com>
wrote:

Hi there,

Is there a generic way to have CMake copy (or link to) required files
(ei: movies) into an out-of-source build directory?


If symlinks work for you, you can do:

execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink old new)


If what you really want to do is create a copy, you can change the
'create_symlink' option with 'copy' (for individual files) or
'copy_directory' (for entire directories). However, it looks like
for your
use case you can get away with symlinks, if your platform allows
them, that
is.

Cheers,

Adolfo



When I build in an
out-of-source directory, I would also like to test from the same
directory without having to take any additional steps.

--
Cheers,
Karol Krizka

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




--
Adolfo Rodríguez Tsouroukdissian

Robotics engineer
PAL ROBOTICS S.L
http://www.pal-robotics.com
Tel. +34.93.414.53.47
Fax.+34.93.209.11.09
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to