diff options
author | Manuel Bentele | 2020-10-22 12:08:34 +0200 |
---|---|---|
committer | Manuel Bentele | 2020-10-22 12:08:34 +0200 |
commit | f9872723efc831827d179c3baf5b9f6c428512c4 (patch) | |
tree | 9662cc3071362570a1f4051f0850b41fbdfff246 /src/fuse | |
parent | [BUILD] add option to build the dnbd3-server with afl-fuzz support (diff) | |
download | dnbd3-f9872723efc831827d179c3baf5b9f6c428512c4.tar.gz dnbd3-f9872723efc831827d179c3baf5b9f6c428512c4.tar.xz dnbd3-f9872723efc831827d179c3baf5b9f6c428512c4.zip |
[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.
Diffstat (limited to 'src/fuse')
-rw-r--r-- | src/fuse/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/fuse/main.c | 2 |
2 files changed, 3 insertions, 2 deletions
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 ); |