From f6b8069a6a7f819057f144927753d5a34d5d7de7 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 10 Feb 2020 17:08:29 +0100 Subject: [PATCH] WIP --- icinga-app/CMakeLists.txt | 4 ++-- icinga-app/app.manifest | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 icinga-app/app.manifest diff --git a/icinga-app/CMakeLists.txt b/icinga-app/CMakeLists.txt index 83e8e1a6a..2ebfb17dd 100644 --- a/icinga-app/CMakeLists.txt +++ b/icinga-app/CMakeLists.txt @@ -82,9 +82,9 @@ if(MSVC) MESSAGE(WARNING "CMake version 3.0 or newer is required use build variable TARGET_FILE") else() ADD_CUSTOM_COMMAND( - TARGET ${TARGET_TARGETNAME} + TARGET icinga-app POST_BUILD - COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\agent\\windows-setup-agent\\app.manifest\" -inputresource:\"$\"\;\#1 -outputresource:\"$\"\;\#1 + COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\app.manifest\" -outputresource:\"icinga2\"\;\#1 COMMENT "Adding OS version detection manifest..." ) endif() diff --git a/icinga-app/app.manifest b/icinga-app/app.manifest new file mode 100644 index 000000000..cf5cb1f13 --- /dev/null +++ b/icinga-app/app.manifest @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + +