Skip to content

Commit c9b7cf7

Browse files
committed
Fixed issue #27: Application icon.
1 parent 80fdd13 commit c9b7cf7

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changes for 2.2.0:
44
* Fixed issue #24: License copy in all source and include files.
55
* Fixed issue #25: Resource identifier for win32 generator.
66
* Fixed issue #26: Relative path in resource files generated by win32 generator.
7+
* Fixed issue #27: Application icon.
78
* New feature: Generators generate files with appropriate include guard. Removed all `#pragma once` statements in the code.
89

910
Changes for 2.1.0:

docs/icon.ico

3.19 KB
Binary file not shown.

src/bin2cpp/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
# Set an icon for the application when viewed from File Explorer on Windows
2+
if (WIN32)
3+
set(ICON_RESOURCE_FILE ${CMAKE_CURRENT_BINARY_DIR}/icon.rc)
4+
file(WRITE ${ICON_RESOURCE_FILE} "main ICON \"${CMAKE_SOURCE_DIR}/docs/icon.ico\"\n" )
5+
endif()
6+
17
add_executable(bin2cpp
28
${BIN2CPP_VERSION_HEADER}
39
${BIN2CPP_CONFIG_HEADER}
10+
${ICON_RESOURCE_FILE}
411
ArrayGenerator.cpp
512
ArrayGenerator.h
613
BaseGenerator.cpp

0 commit comments

Comments
 (0)