Solved

CMake and windows win32 *.rc file

Posted on 2011-03-05
2
1,224 Views
Last Modified: 2012-05-11
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
Comment
Question by:DoZo1971
2 Comments
 

Author Comment

by:DoZo1971
ID: 35043649
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
 
LVL 33

Accepted Solution

by:
sarabande earned 500 total points
ID: 35822789
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now