[CMake] Setting the and Icon for a Windows Executable
David Cole
david.cole at kitware.com
Fri Aug 21 15:48:56 EDT 2009
Add a *.rc file to your ADD_EXECUTABLE sources.
In the *.rc file, add a line that references the ico file:
IDR_MAINFRAME ICON "res\\CMakeSetupDialog.ico"
(In this example, IDR_MAINFRAME is a #define that gives an integer
identifier for the ico resource.)
See CMake/Source/MFCDialog/CMakeLists.txt and CMakeSetup.rc for an example.
HTH,
David
On Fri, Aug 21, 2009 at 3:33 PM, Michael Jackson <
mike.jackson at bluequartz.net> wrote:
> What would be the "cmake" way of setting an icon (.ico file) as the icon
> for an executable?
>
>
> _________________________________________________________
> Mike Jackson mike.jackson at bluequartz.net
> BlueQuartz Software www.bluequartz.net
> Principal Software Engineer Dayton, Ohio
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090821/342a8bd1/attachment-0001.htm>
More information about the CMake
mailing list