diff options
author | Michael Scherle | 2022-02-17 18:58:25 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-05-13 18:25:14 +0200 |
commit | d92d1d3faf7cde517d8c3fe914301eb5aa872f62 (patch) | |
tree | ff2eaa0a640223b36dfabd3ffe29772e44e50733 /src/cowtest/CMakeLists.txt | |
parent | [KERNEL] Fix build on 5.15 kernels >= 5.15.132 (diff) | |
download | dnbd3-d92d1d3faf7cde517d8c3fe914301eb5aa872f62.tar.gz dnbd3-d92d1d3faf7cde517d8c3fe914301eb5aa872f62.tar.xz dnbd3-d92d1d3faf7cde517d8c3fe914301eb5aa872f62.zip |
[FUSE] basic cow implementation & rudimentary tests
Diffstat (limited to 'src/cowtest/CMakeLists.txt')
-rw-r--r-- | src/cowtest/CMakeLists.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/cowtest/CMakeLists.txt b/src/cowtest/CMakeLists.txt new file mode 100644 index 0000000..235a371 --- /dev/null +++ b/src/cowtest/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required(VERSION 3.10) + +# set the project name +project(dnbd3-fuse-cow-test + LANGUAGES C) + + +# find atomic library required by DNBD3_CLIENT_FUSE_COW_TEST +#find_package(Stdatomic REQUIRED) +#find_package(Libatomic REQUIRED) + +# add compile option to enable enhanced POSIX pthread features +add_definitions(-D_GNU_SOURCE) + +set(DNBD3_CLIENT_FUSE_COW_TEST_SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/main.c) +#set(DNBD3_CLIENT_FUSE_COW_TEST_HEADER_FILES ) + + +add_executable(dnbd3-fuse-cow-test ${DNBD3_CLIENT_FUSE_COW_TEST_SOURCE_FILES}) +target_link_libraries(dnbd3-fuse-cow-test dnbd3-version dnbd3-shared ${CMAKE_THREAD_LIBS_INIT}) + + +install(TARGETS dnbd3-fuse-cow-test RUNTIME DESTINATION bin + COMPONENT cowtest) + +#add_linter(dnbd3-fuse-lint "${DNBD3_CLIENT_FUSE_COW_TEST_SOURCE_FILES}" "${DNBD3_CLIENT_FUSE_COW_TEST_HEADER_FILES}") +#add_linter_fix(dnbd3-fuse-lint-fix "${DNBD3_CLIENT_FUSE_COW_TEST_SOURCE_FILES}" "${DNBD3_CLIENT_FUSE_COW_TEST_HEADER_FILES}") |