From 6aa58cd6d045b610e05fbf9ba5185eef602a2e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Mon, 20 Nov 2023 00:49:52 +0000 Subject: [PATCH] Install examples in BINDIR --- CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e2b9931..67ceebec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,7 @@ set(TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/test) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/") set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +set(CMAKE_SKIP_RPATH TRUE) if(CMAKE_GENERATOR MATCHES "Unix Makefiles|Ninja") # some LSP servers expect compile_commands.json in the project root add_custom_target( @@ -839,4 +840,16 @@ if(LIBVNCSERVER_INSTALL) ${CMAKE_CURRENT_BINARY_DIR}/libvncclient.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig ) + + install(DIRECTORY + ${CMAKE_CURRENT_BINARY_DIR}/examples/server/ + DESTINATION "${CMAKE_INSTALL_BINDIR}" + USE_SOURCE_PERMISSIONS + ) + + install(DIRECTORY + ${CMAKE_CURRENT_BINARY_DIR}/examples/client/ + DESTINATION "${CMAKE_INSTALL_BINDIR}" + USE_SOURCE_PERMISSIONS + ) endif()