Skip to content

Instantly share code, notes, and snippets.

@Niakr1s
Niakr1s / cmake_windows_icon.txt
Created November 23, 2019 19:55
How to add icon to cmake app in windows
1. Put app.ico in directory.
2. Create app.rc in same directory with one line:
IDI_ICON1 ICON DISCARDABLE "app.ico"
3. Run command (Warning: it's app.o, not app.res, how it is mentioned in other manuals!)
windres app.rc -o app.o
4. add_executable(app
...
# - Check for the presence of SLikeNet
#
# The following variables are set when SLikeNet is found:
# SLIKENET_FOUND Set to true, if all components of SLikeNet
# have been found.
# SLIKENET_INCLUDE_DIRS Include path for the header files of SLikeNet
# SLIKENET_LIBRARIES Link these to use SLikeNet
# SLIKENET_LFLAGS Linker flags(optional)
option(