add file info to the FreeCADCmd.exe
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
35
src/Main/freecadCmd.rc.cmake
Normal file
35
src/Main/freecadCmd.rc.cmake
Normal 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
|
||||
Reference in New Issue
Block a user