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/fuse/CMakeLists.txt | 3 ++- src/fuse/main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fuse') diff --git a/src/fuse/CMakeLists.txt b/src/fuse/CMakeLists.txt index 1c107ed..4944a87 100644 --- a/src/fuse/CMakeLists.txt +++ b/src/fuse/CMakeLists.txt @@ -11,4 +11,5 @@ add_executable(dnbd3-fuse ${CMAKE_CURRENT_SOURCE_DIR}/connection.c ${CMAKE_CURRENT_SOURCE_DIR}/main.c) target_include_directories(dnbd3-fuse PRIVATE ${FUSE_INCLUDE_DIRS}) target_link_libraries(dnbd3-fuse dnbd3-version dnbd3-shared ${FUSE_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) -install(TARGETS dnbd3-fuse RUNTIME DESTINATION bin) +install(TARGETS dnbd3-fuse RUNTIME DESTINATION bin + COMPONENT fuse) diff --git a/src/fuse/main.c b/src/fuse/main.c index 2a851a7..8963e6d 100644 --- a/src/fuse/main.c +++ b/src/fuse/main.c @@ -273,7 +273,7 @@ static struct fuse_lowlevel_ops image_oper = { static void printVersion() { char *arg[] = { "foo", "-V" }; - printf( "dnbd3-fuse version: %s\n", DNBD3_BUILD_VERSION ); + printf( "dnbd3-fuse version: %s\n", DNBD3_VERSION ); printf( "Protocol version: %d\n", (int)PROTOCOL_VERSION ); struct fuse_args args = FUSE_ARGS_INIT( 2, arg ); fuse_parse_cmdline( &args, NULL, NULL, NULL ); -- cgit v1.2.3-55-g7522