Hello,
I'm using CMake custom commands to copy files from a source directory to a
project binary one. The copying commands itself looks this way:
add_custom_command( OUTPUT "${dest_file}"
COMMAND "${CMAKE_COMMAND}" -E copy "${src_file}" "${dest_file}"
DEPENDS "${src_file}"
)
After all "add_custom_command" calls a custom target is created that depends
on all copied files
add_custom_target( copy_files_targ ALL DEPENDS ${dest_file1} ${dest_file2}
)
After generation of Visual Studio's solution and project files I found out
that a whole bunch of .rule had been created in the output directory.
So, while the source dir has the following contents: config1.xml,
config2.xml, config3.xml, the destination directory contains two times more
files: config1.xml, config2.xml, config3.xml and config1.xml.rule,
config2.xml.rule, config3.xml.rule.
I don't want to have all those additional files in the destination folder.
So the question is: is there a way to put ".rule" files into another dir?
Thanks in advance.
_______________________________________________
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