]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: moved tests into test/cls_hello dir
authorAli Maredia <amaredia@redhat.com>
Mon, 1 Feb 2016 22:46:56 +0000 (17:46 -0500)
committerAli Maredia <amaredia@redhat.com>
Fri, 15 Apr 2016 00:48:20 +0000 (20:48 -0400)
Added a CMakeLists.txt into test/cls_hello.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
src/test/CMakeLists.txt
src/test/cls_hello/CMakeLists.txt [new file with mode: 0644]

index 9d4cb2a2299928d1208076b48efdfd7836801686..7be70cd9fef33421877ab6762a41a1b19d67c8e7 100644 (file)
@@ -512,20 +512,7 @@ target_link_libraries(ceph_test_cls_lock
   radostest
   )
 
-add_executable(ceph_test_cls_hello
-  cls_hello/test_cls_hello.cc
-  )
-set_target_properties(ceph_test_cls_hello PROPERTIES COMPILE_FLAGS
-  ${UNITTEST_CXX_FLAGS})
-target_link_libraries(ceph_test_cls_hello
-  librados
-  global
-  ${EXTRALIBS}
-  ${BLKID_LIBRARIES}
-  ${CMAKE_DL_LIBS}
-  radostest
-  ${UNITTEST_LIBS}
-  )
+add_subdirectory(cls_hello)
 
 add_executable(ceph_test_cls_numops cls_numops/test_cls_numops.cc)
 set_target_properties(ceph_test_cls_numops PROPERTIES COMPILE_FLAGS
diff --git a/src/test/cls_hello/CMakeLists.txt b/src/test/cls_hello/CMakeLists.txt
new file mode 100644 (file)
index 0000000..01b4ac3
--- /dev/null
@@ -0,0 +1,15 @@
+add_executable(ceph_test_cls_hello
+  test_cls_hello.cc
+  )
+set_target_properties(ceph_test_cls_hello PROPERTIES COMPILE_FLAGS
+  ${UNITTEST_CXX_FLAGS})
+target_link_libraries(ceph_test_cls_hello
+  librados
+  global
+  ${EXTRALIBS}
+  ${BLKID_LIBRARIES}
+  ${CMAKE_DL_LIBS}
+  radostest
+  ${UNITTEST_LIBS}
+  )
+