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
Post a Comment