[CMake] Copying a data directory
Filipe Sousa
filipe at ipb.pt
Wed Jul 5 06:04:07 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Steve Johns wrote:
> Can someone suggest a good way to copy a data directory from the source tree
> to the build tree?
If you really need to copy a directory use
${CMAKE_COMMAND} -E copy_directory with ADD_CUSTOM_COMMAND() or
EXECUTE_PROCESS()
fsousa at neptuno ~ $ cmake -E
CMake Error: cmake version 2.5-20060627
Usage: cmake -E [command] [arguments ...]
Available commands:
...
copy_directory source destination - copy directory 'source' content
to directory 'destination'
> I want to be do this for both Unix and VC builds.
>
> The purpose is just to have some test input data available in the location
> where the newly built program is looking for it.
- --
Filipe Sousa
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
iD8DBQFEq46XbQdNYqwwwCwRAs2LAJ4z5YzS+mZ3hlUzTXMvPCgNGu0IwgCdGvEV
1nMGcarGW0Jl6OFaafZrfSo=
=zmqt
-----END PGP SIGNATURE-----
More information about the CMake
mailing list