Add icon and version info resource for the Icinga binary.

Refs #4865
This commit is contained in:
Gunnar Beutner 2014-04-16 19:04:57 +02:00
parent d930b1e72e
commit 1373a543b2
3 changed files with 41 additions and 1 deletions

View File

@ -15,7 +15,13 @@
# along with this program; if not, write to the Free Software Foundation
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
add_executable(icinga-app icinga.cpp)
if(MSVC)
set(WindowsSources icinga.rc)
else()
set(WindowsSources "")
endif()
add_executable(icinga-app icinga.cpp ${WindowsSources})
include_directories(${Boost_INCLUDE_DIRS})
target_link_libraries(icinga-app ${Boost_LIBRARIES} base config)

BIN
icinga-app/icinga.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

34
icinga-app/icinga.rc Normal file
View File

@ -0,0 +1,34 @@
#include <windows.h>
#include "icinga-version.h"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
100 ICON "icinga.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "Icinga Development Team"
VALUE "FileDescription", "Icinga 2"
VALUE "FileVersion", VERSION
VALUE "InternalName", "icinga2.exe"
VALUE "LegalCopyright", "© Icinga Development Team"
VALUE "OriginalFilename", "icinga2.exe"
VALUE "ProductName", "Icinga 2"
VALUE "ProductVersion", VERSION
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 0x04E4
END
END