diff --git a/src/Main/CMakeLists.txt b/src/Main/CMakeLists.txt index 59552bc7ca..7877085746 100644 --- a/src/Main/CMakeLists.txt +++ b/src/Main/CMakeLists.txt @@ -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 diff --git a/src/Main/freecad.rc b/src/Main/freecad.rc index 498724eaf8..31c7a1a739 100644 --- a/src/Main/freecad.rc +++ b/src/Main/freecad.rc @@ -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 diff --git a/src/Main/freecad.rc.cmake b/src/Main/freecad.rc.cmake index 5f24983222..231f93cc91 100644 --- a/src/Main/freecad.rc.cmake +++ b/src/Main/freecad.rc.cmake @@ -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 diff --git a/src/Main/freecadCmd.rc.cmake b/src/Main/freecadCmd.rc.cmake new file mode 100644 index 0000000000..05aa2798e6 --- /dev/null +++ b/src/Main/freecadCmd.rc.cmake @@ -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