I want to copy intermediate object files from build folder into another folder.
I have used : file(GLOB OUTPUT_COMPILED_FILES_POST CONFIGURE_DEPENDS "IntCode/*/*" "ApplicationComps/*/src/Common/*.*)"
to collect the names of the files as they are plenty.
and then I used file(COPY ${OUTPUT_COMPILED_FILES_POST} DESTINATION ${OBJECTS_FOLDER}) to copy the files but It doesn't do anything as when the glob command is working the files are not yet generated.
I have multiple sub directories the 4th one has add_executable which generates object files and exe file the fifth and sixth sub directories need some object files.
So. My question:
Is there any other way to do this?