set_source_files_properties with /Tp and /Tc

I checked this further and the below works instead of manually specifying platform switches:

set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/abc/x.c PROPERTIES LANGUAGE CXX)
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/abc/y.c PROPERTIES LANGUAGE CXX)

thank you.