From d62e8251a2ca5657c99951430ae1d2d95e37bd40 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 @@ + + + + + + + + + + + + + + + + + +