function(copyObjectFiles)
  file(GLOB_RECURSE ObjectFiles ${CMAKE_CURRENT_SOURCE_DIR} *.o)
  file(COPY ${ObjectFiles} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../static_object_files)
endfunction(copyObjectFiles)
copyObjectFiles()

function(copyObjectFiles)
  file(GLOB_RECURSE ObjectFiles ${CMAKE_CURRENT_SOURCE_DIR} *.obj)
  file(COPY ${ObjectFiles} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/../static_object_files)
endfunction(copyObjectFiles)
copyObjectFiles()

Use correct Windows object file extension.
Use correct Windows object file extension.
