# MSVC .rc files support

**URL:** https://discourse.cmake.org/t/msvc-rc-files-support/10626
**Category:** Usage
**Created:** [April 10, 2024, 1:19pm UTC](https://discourse.cmake.org/t/msvc-rc-files-support/10626 "2024-04-10T13:19:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![martingalvan-volue](https://discourse.cmake.org/user_avatar/discourse.cmake.org/martingalvan-volue/32/4483_2.png) [@martingalvan-volue](https://discourse.cmake.org/u/martingalvan-volue)
#### Post date: [April 10, 2024, 1:19pm UTC](https://discourse.cmake.org/t/msvc-rc-files-support/10626/1 "2024-04-10T13:19:15Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [April 10, 2024, 1:27pm UTC](https://discourse.cmake.org/t/msvc-rc-files-support/10626/2 "2024-04-10T13:27:28Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![martingalvan-volue](https://discourse.cmake.org/user_avatar/discourse.cmake.org/martingalvan-volue/32/4483_2.png) [@martingalvan-volue](https://discourse.cmake.org/u/martingalvan-volue)
#### Post date: [April 10, 2024, 1:28pm UTC](https://discourse.cmake.org/t/msvc-rc-files-support/10626/3 "2024-04-10T13:28:06Z")

</div>

Thanks. Where is this documented?

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [April 10, 2024, 1:34pm UTC](https://discourse.cmake.org/t/msvc-rc-files-support/10626/4 "2024-04-10T13:34:00Z")

</div>

Ah, it looks like this isn’t documented. Sorry about that. I’ve repurposed [CMake Issue 25882](https://gitlab.kitware.com/cmake/cmake/-/issues/25882) to track that.
