From f9872723efc831827d179c3baf5b9f6c428512c4 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Thu, 22 Oct 2020 12:08:34 +0200 Subject: [BUILD] add CMake targets to build binary and source packages with CPack This patch adds the following CMake targets - package - source to build bundeled packages. Those packages contain either all built binary artifacts or all source files for source code distribution. Both CMake targets are available in Release build configuration. --- conf/CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 conf/CMakeLists.txt (limited to 'conf/CMakeLists.txt') diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt new file mode 100644 index 0000000..1b888e6 --- /dev/null +++ b/conf/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.10) + +# set the project name +project(dnbd3-conf) + +# define all configuration files +set(DNBD3_CONF_FILES ${CMAKE_CURRENT_SOURCE_DIR}/alt-servers + ${CMAKE_CURRENT_SOURCE_DIR}/rpc.acl + ${CMAKE_CURRENT_SOURCE_DIR}/server.conf) + +# install configuration files into sample directory +install(FILES ${DNBD3_CONF_FILES} DESTINATION /etc/dnbd3-server/sample + COMPONENT server) -- cgit v1.2.3-55-g7522