File tree 4 files changed +9
-0
lines changed
4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ include(GitCommands)
31
31
# Set the project version
32
32
include (K4AProjectVersion)
33
33
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
+
34
38
set (PROJ_DIR ${CMAKE_CURRENT_LIST_DIR} )
35
39
set (INCLUDE_DIR ${PROJ_DIR} /include )
36
40
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ set(SOURCE_FILES
41
41
# to embed version information
42
42
set (K4A_FILEDESCRIPTION "Azure Kinect Viewer" )
43
43
set (K4A_ORIGINALFILENAME "k4aviewer.exe" )
44
+ set (K4A_USE_ICON 1)
44
45
configure_file (
45
46
${K4A_VERSION_RC}
46
47
${CMAKE_CURRENT_BINARY_DIR} /version .rc
Original file line number Diff line number Diff line change 24
24
#define VER_PRIVATEBUILD 0
25
25
#define VER_PRERELEASE 0
26
26
27
+ #if @K4A_USE_ICON@
28
+ APP_ICON ICON "@K4A_ICON_PATH@"
29
+ #endif
30
+
27
31
VS_VERSION_INFO VERSIONINFO
28
32
FILEVERSION VER_FILEVERSION
29
33
PRODUCTVERSION VER_PRODUCTVERSION
You can’t perform that action at this time.
0 commit comments