Solved

CMake and windows win32 *.rc file

Posted on 2011-03-05
2
1,241 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

773 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