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. --- src/bench/CMakeLists.txt | 3 ++- src/bench/main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/bench') diff --git a/src/bench/CMakeLists.txt b/src/bench/CMakeLists.txt index 57aad92..59a5ef8 100644 --- a/src/bench/CMakeLists.txt +++ b/src/bench/CMakeLists.txt @@ -10,4 +10,5 @@ add_executable(dnbd3-bench ${CMAKE_CURRENT_SOURCE_DIR}/connection.c ${CMAKE_CURRENT_SOURCE_DIR}/helper.c ${CMAKE_CURRENT_SOURCE_DIR}/main.c) target_link_libraries(dnbd3-bench dnbd3-version dnbd3-shared ${CMAKE_THREAD_LIBS_INIT}) -install(TARGETS dnbd3-bench RUNTIME DESTINATION bin) +install(TARGETS dnbd3-bench RUNTIME DESTINATION bin + COMPONENT bench) diff --git a/src/bench/main.c b/src/bench/main.c index 1a59747..d195e26 100644 --- a/src/bench/main.c +++ b/src/bench/main.c @@ -20,7 +20,7 @@ static void printUsage(char *argv0, int exitCode) { - printf( "Version: %s\n", DNBD3_BUILD_VERSION ); + printf( "Version: %s\n", DNBD3_VERSION ); printf( "Usage: %s [--debug] --host --image [--rid revision]\n", argv0 ); printf( "Or: %s [-d] -h -i [-r revision]\n", argv0 ); printf( " -h --host List of space separated hosts to use\n" ); -- cgit v1.2.3-55-g7522