?
Solved

CMake and windows win32 *.rc file

Posted on 2011-03-05
2
Medium Priority
?
1,420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 35

Accepted Solution

by:
sarabande earned 2000 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

770 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