copy - CMake import non-compiled files into build directory -


i use cmake that:

$ mkdir build && cd build $ cmake .. && make && atf-run | atf-report 

but run atf need files (for example /atffile , test/atffile), i'm looking way import in build directory kind file.

i tried this:

file(copy ${project_source_dir}/.. destination ${project_source_dir}/..) 

but doesn't work. simple/cleaner way it?

assuming "/atffile" , "/test/atffile" files , not folders, can use configure_file

configure_file(atffile atffile copyonly) configure_file(test/atffile test/atffile copyonly) 

since commands here use relative paths throughout, input arg relative current source directory , output arg relative current binary (i.e. build) directory.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -