add file info to the FreeCADCmd.exe

This commit is contained in:
donovaly
2020-02-15 17:31:37 +01:00
committed by wwmayer
parent 4aba7235f2
commit 825aac9fad
4 changed files with 41 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
#add_defintions(-DFREECADMAINPY)
configure_file(freecad.rc.cmake ${CMAKE_CURRENT_BINARY_DIR}/freecad.rc)
configure_file(freecadCmd.rc.cmake ${CMAKE_CURRENT_BINARY_DIR}/freecadCmd.rc)
file(COPY icon.ico DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
if(BUILD_GUI)
@@ -74,8 +75,11 @@ endif(BUILD_GUI)
######################## FreeCADMainCmd ########################
SET(FreeCADMainCmd_SRCS
${CMAKE_CURRENT_BINARY_DIR}/freecadCmd.rc
icon.ico
MainCmd.cpp
)
add_executable(FreeCADMainCmd ${FreeCADMainCmd_SRCS})
SET(FreeCADMainCmd_LIBS

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// For nfo about the file structrure see
// For info about the file structrure see
// https://docs.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource
// and
// https://docs.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
// For nfo about the file structrure see
// For info about the file structrure see
// https://docs.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource
// and
// https://docs.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block

View File

@@ -0,0 +1,35 @@
/////////////////////////////////////////////////////////////////////////////
// For info about the file structrure see
// https://docs.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource
// and
// https://docs.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1 ICON DISCARDABLE "icon.ico"
// File info for the FreeCADCmd.exe
//
1 VERSIONINFO
FILEVERSION ${PACKAGE_VERSION_MAJOR},${PACKAGE_VERSION_MINOR},${FREECAD_VERSION_PATCH},${PACKAGE_VERSION_PATCH}
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0" // 409 stands for US English
BEGIN
VALUE "CompanyName", "${PROJECT_NAME} Team"
VALUE "FileDescription", "${PROJECT_NAME} command line executable"
VALUE "InternalName", "FreeCADCmd.exe"
VALUE "LegalCopyright", "Copyright (C) 2020"
VALUE "OriginalFilename", "FreeCADCmd.exe"
VALUE "ProductName", "${PROJECT_NAME}"
VALUE "ProductVersion", "${FREECAD_VERSION}.${FREECAD_VERSION_PATCH}${PACKAGE_VERSION_SUFFIX}"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200 //US English, Unicode
END
END