summaryrefslogtreecommitdiffstats
path: root/src/test/libcephfs/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/libcephfs/CMakeLists.txt')
-rw-r--r--src/test/libcephfs/CMakeLists.txt96
1 files changed, 96 insertions, 0 deletions
diff --git a/src/test/libcephfs/CMakeLists.txt b/src/test/libcephfs/CMakeLists.txt
new file mode 100644
index 000000000..672e6dd8f
--- /dev/null
+++ b/src/test/libcephfs/CMakeLists.txt
@@ -0,0 +1,96 @@
+if(WITH_LIBCEPHFS)
+ add_executable(ceph_test_libcephfs
+ test.cc
+ readdir_r_cb.cc
+ caps.cc
+ multiclient.cc
+ flock.cc
+ recordlock.cc
+ acl.cc
+ main.cc
+ deleg.cc
+ monconfig.cc
+ vxattr.cc
+ snapdiff.cc
+ )
+ target_link_libraries(ceph_test_libcephfs
+ ceph-common
+ cephfs
+ ${UNITTEST_LIBS}
+ ${EXTRALIBS}
+ ${CMAKE_DL_LIBS}
+ )
+ install(TARGETS ceph_test_libcephfs
+ DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+ add_executable(ceph_test_libcephfs_suidsgid
+ suidsgid.cc
+ )
+ target_link_libraries(ceph_test_libcephfs_suidsgid
+ ceph-common
+ cephfs
+ librados
+ ${UNITTEST_LIBS}
+ ${EXTRALIBS}
+ ${CMAKE_DL_LIBS}
+ )
+ install(TARGETS ceph_test_libcephfs_suidsgid
+ DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+ add_executable(ceph_test_libcephfs_newops
+ main.cc
+ newops.cc
+ )
+ target_link_libraries(ceph_test_libcephfs_newops
+ ceph-common
+ cephfs
+ ${UNITTEST_LIBS}
+ ${EXTRALIBS}
+ ${CMAKE_DL_LIBS}
+ )
+ install(TARGETS ceph_test_libcephfs_newops
+ DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+ # uses fork, not available on Windows
+ if(NOT WIN32)
+ add_executable(ceph_test_libcephfs_reclaim
+ reclaim.cc
+ )
+ target_link_libraries(ceph_test_libcephfs_reclaim
+ cephfs
+ ${UNITTEST_LIBS}
+ ${EXTRALIBS}
+ ${CMAKE_DL_LIBS}
+ )
+ install(TARGETS ceph_test_libcephfs_reclaim
+ DESTINATION ${CMAKE_INSTALL_BINDIR})
+ endif(NOT WIN32)
+
+ add_executable(ceph_test_libcephfs_lazyio
+ lazyio.cc
+ )
+ target_link_libraries(ceph_test_libcephfs_lazyio
+ cephfs
+ librados
+ ${UNITTEST_LIBS}
+ ${EXTRALIBS}
+ ${CMAKE_DL_LIBS}
+ )
+ install(TARGETS ceph_test_libcephfs_lazyio
+ DESTINATION ${CMAKE_INSTALL_BINDIR})
+
+ add_executable(ceph_test_libcephfs_access
+ test.cc
+ access.cc
+ )
+ target_link_libraries(ceph_test_libcephfs_access
+ ceph-common
+ cephfs
+ librados
+ ${UNITTEST_LIBS}
+ ${EXTRALIBS}
+ ${CMAKE_DL_LIBS}
+ )
+ install(TARGETS ceph_test_libcephfs_access
+ DESTINATION ${CMAKE_INSTALL_BINDIR})
+endif(WITH_LIBCEPHFS)