• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1690
  • Last Modified:

CMake and windows win32 *.rc file

Hi,

I was wondering how to add an (oldschool) win32 *.rc file via CMake.
ADD_EXECUTABLE(... Resource.rc) or ADD_LIBRARY(... Resource.rc) doesn't work, the macros don't recognize the *.rc extension.

Kind Regards,
Daniel Dekkers
0
DoZo1971
Asked:
DoZo1971
1 Solution
 
DoZo1971Author Commented:
My bad...
I can add *.rc files to the ADD_LIBRARY() or ADD_EXECUTABLE() macro's.
They don't show up in the Visual Studio Solution Explorer though...
0
 
sarabandeCommented:
if using visual studio you could add the rc file to the Solution Explorer directly. then the default tool used for build would be the 'Resource Compiler Tool' rc.exe what automatically was set in the build properties.

if you want to use the rc.exe in the make utility, you easilly can see the syntax by typing

   rc /?

in a command window.

Sara
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now