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.txt64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/test/libcephfs/CMakeLists.txt b/src/test/libcephfs/CMakeLists.txt
new file mode 100644
index 00000000..4ede0eca
--- /dev/null
+++ b/src/test/libcephfs/CMakeLists.txt
@@ -0,0 +1,64 @@
+if(${WITH_CEPHFS})
+ 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
+ )
+ 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_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})
+
+ 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_CEPHFS})
+