MSVC .rc files support

Hi, I’d like to know whether CMake supports generating .sln files which use MSVC Resource Files (.rc). I’ve seen several places online implying that CMake supports these .rc files, but the RC language is not mentioned in the documentation for the enable_language and project commands.

Tagging @brad.king since he indicated that this should be asked here and not in the Issues list.

Yes. Just list .rc files like other sources. The RC language is enabled automatically when enabling other languages like C or CXX on Windows platforms.

Thanks. Where is this documented?

Ah, it looks like this isn’t documented. Sorry about that. I’ve repurposed CMake Issue 25882 to track that.