Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Added icon to viewer app (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent-A committed Jun 25, 2019
1 parent 0b3d1ab commit 95b3cef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ include(GitCommands)
# Set the project version
include(K4AProjectVersion)

# Default to not embed an icon in resources
set(K4A_USE_ICON 0)
set(K4A_ICON_PATH ${CMAKE_CURRENT_LIST_DIR}/kinect-viewer.ico)

set(PROJ_DIR ${CMAKE_CURRENT_LIST_DIR})
set(INCLUDE_DIR ${PROJ_DIR}/include)

Expand Down
Binary file added kinect-viewer.ico
Binary file not shown.
1 change: 1 addition & 0 deletions tools/k4aviewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ set(SOURCE_FILES
# to embed version information
set(K4A_FILEDESCRIPTION "Azure Kinect Viewer")
set(K4A_ORIGINALFILENAME "k4aviewer.exe")
set(K4A_USE_ICON 1)
configure_file(
${K4A_VERSION_RC}
${CMAKE_CURRENT_BINARY_DIR}/version.rc
Expand Down
4 changes: 4 additions & 0 deletions version.rc.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
#define VER_PRIVATEBUILD 0
#define VER_PRERELEASE 0

#if @K4A_USE_ICON@
APP_ICON ICON "@K4A_ICON_PATH@"
#endif

VS_VERSION_INFO VERSIONINFO
FILEVERSION VER_FILEVERSION
PRODUCTVERSION VER_PRODUCTVERSION
Expand Down

0 comments on commit 95b3cef

Please sign in to comment.