From 719561fcf25d1ae5d6a612555fdeccaf848bf1cc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 16 Dec 2019 12:25:31 +0300 Subject: cmake: add install() rules --- um/service/utils/CMakeLists.txt | 3 +++ um/wrappers/simple/utils/CMakeLists.txt | 2 ++ um/wrappers/special/nt_namespace/utils/CMakeLists.txt | 2 ++ 3 files changed, 7 insertions(+) diff --git a/um/service/utils/CMakeLists.txt b/um/service/utils/CMakeLists.txt index f288c51..fa81443 100644 --- a/um/service/utils/CMakeLists.txt +++ b/um/service/utils/CMakeLists.txt @@ -13,3 +13,6 @@ set_target_properties(service_stop PROPERTIES OUTPUT_NAME stop_service) add_executable(service_uninstall uninstall_service.cpp) target_link_libraries(service_uninstall PRIVATE service) set_target_properties(service_uninstall PROPERTIES OUTPUT_NAME uninstall_service) + +install(TARGETS service_install service_start service_stop service_uninstall + RUNTIME DESTINATION bin) diff --git a/um/wrappers/simple/utils/CMakeLists.txt b/um/wrappers/simple/utils/CMakeLists.txt index c4d3bdd..7c2a70d 100644 --- a/um/wrappers/simple/utils/CMakeLists.txt +++ b/um/wrappers/simple/utils/CMakeLists.txt @@ -1,3 +1,5 @@ add_executable(simple_exchange_ints exchange_ints.cpp) target_link_libraries(simple_exchange_ints PRIVATE simple) set_target_properties(simple_exchange_ints PROPERTIES OUTPUT_NAME exchange_ints) + +install(TARGETS simple_exchange_ints RUNTIME DESTINATION bin) diff --git a/um/wrappers/special/nt_namespace/utils/CMakeLists.txt b/um/wrappers/special/nt_namespace/utils/CMakeLists.txt index 9657693..5d354ce 100644 --- a/um/wrappers/special/nt_namespace/utils/CMakeLists.txt +++ b/um/wrappers/special/nt_namespace/utils/CMakeLists.txt @@ -5,3 +5,5 @@ if(MINGW) target_compile_options(nt_namespace_convert PRIVATE -municode) target_link_libraries(nt_namespace_convert PRIVATE -municode) endif() + +install(TARGETS nt_namespace_convert RUNTIME DESTINATION bin) -- cgit v1.2.3