From 5a45e6d1021b2a1dc9f8f4dfca26d8f160e3ad54 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 21 Nov 2024 20:39:29 -0500 Subject: [PATCH] build: windows, create install step for daemon --- src/cmd/deskflowd/CMakeLists.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/cmd/deskflowd/CMakeLists.txt b/src/cmd/deskflowd/CMakeLists.txt index b2404bdbd..52c93f10d 100644 --- a/src/cmd/deskflowd/CMakeLists.txt +++ b/src/cmd/deskflowd/CMakeLists.txt @@ -35,6 +35,20 @@ if(WIN32) app ${libs}) - post_config() + install( + TARGETS ${target} + RUNTIME_DEPENDENCY_SET deamonDeps + DESTINATION . + ) + install(RUNTIME_DEPENDENCY_SET daemonDeps + PRE_EXCLUDE_REGEXES + "api-ms-win-.*" + "ext-ms-.*" + "^hvsifiletrust\\.dll$" + POST_EXCLUDE_REGEXES + ".*system32.*" + RUNTIME DESTINATION . + ) + post_config() endif()