Solved

CMake and windows win32 *.rc file

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Grammars for C C++ and java 1 131
C++ Language error 28 246
Best book to learn C++ 4 84
How can i compile this github project?? 2 90
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

837 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