Can CMAKE_<LANG>_COMPILE_OBJECT call a script or a macro/function?

Thank you Ben! I am thinking of another approach of doing what I want doing now. I will be posting another question.