Skip to content

Commit 95b3cef

Browse files
authored
Added icon to viewer app (microsoft#421)
1 parent 0b3d1ab commit 95b3cef

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ include(GitCommands)
3131
# Set the project version
3232
include(K4AProjectVersion)
3333

34+
# Default to not embed an icon in resources
35+
set(K4A_USE_ICON 0)
36+
set(K4A_ICON_PATH ${CMAKE_CURRENT_LIST_DIR}/kinect-viewer.ico)
37+
3438
set(PROJ_DIR ${CMAKE_CURRENT_LIST_DIR})
3539
set(INCLUDE_DIR ${PROJ_DIR}/include)
3640

kinect-viewer.ico

367 KB
Binary file not shown.

tools/k4aviewer/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ set(SOURCE_FILES
4141
# to embed version information
4242
set(K4A_FILEDESCRIPTION "Azure Kinect Viewer")
4343
set(K4A_ORIGINALFILENAME "k4aviewer.exe")
44+
set(K4A_USE_ICON 1)
4445
configure_file(
4546
${K4A_VERSION_RC}
4647
${CMAKE_CURRENT_BINARY_DIR}/version.rc

version.rc.in

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
#define VER_PRIVATEBUILD 0
2525
#define VER_PRERELEASE 0
2626

27+
#if @K4A_USE_ICON@
28+
APP_ICON ICON "@K4A_ICON_PATH@"
29+
#endif
30+
2731
VS_VERSION_INFO VERSIONINFO
2832
FILEVERSION VER_FILEVERSION
2933
PRODUCTVERSION VER_PRODUCTVERSION

0 commit comments

Comments
 (0)