Re: [CMake] How to copy files to the directory of executable file.

2009-03-19 Thread Werner Smekal
Hi, On 19.03.2009, at 02:28, Dancefire wrote: Hi, I'm working on a simple gtkmm program. I use CMake for the makefile generator. I use GtkBuilder to create the window form, so I need a non-executable file, window.xml, locate at the same directory of executable file which just build.

Re: [CMake] How to copy files to the directory of executable file.

2009-03-19 Thread Jonatan Bijl
I've got the following commands. They work quite well. The last parameter is the target for which the copying is needed. The copy_directory has a guard against copying CVS metadata. MACRO(COPY_FILE_IF_CHANGED in_file out_file target) IF(${in_file} IS_NEWER_THAN ${out_file}) #

[CMake] How to copy files to the directory of executable file.

2009-03-18 Thread Dancefire
Hi, I'm working on a simple gtkmm program. I use CMake for the makefile generator. I use GtkBuilder to create the window form, so I need a non-executable file, window.xml, locate at the same directory of executable file which just build. The directory structure is simple, every files on the top