]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: move rgw tests targets down to end
authorKefu Chai <kchai@redhat.com>
Wed, 27 Feb 2019 06:57:53 +0000 (14:57 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 27 Feb 2019 06:57:55 +0000 (14:57 +0800)
so we can reference `RabbitMQ::RabbitMQ` which is defined after
`find_package(RabbitMQ REQUIRED)`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/CMakeLists.txt

index 6d42db2e19aee0650b07fb77f5a1197b8eda937b..c577ea433c4af5165a4341646eb57190554c1297 100644 (file)
@@ -1,22 +1,3 @@
-if(WITH_TESTS)
-add_executable(ceph_rgw_jsonparser
-  rgw_jsonparser.cc)
-target_link_libraries(ceph_rgw_jsonparser
-  rgw_a
-  global rabbitmq)
-
-add_executable(ceph_rgw_multiparser
-  rgw_multiparser.cc)
-target_link_libraries(ceph_rgw_multiparser
-  rgw_a
-  global rabbitmq)
-
-install(TARGETS
-  ceph_rgw_jsonparser
-  ceph_rgw_multiparser
-  DESTINATION bin)
-endif(WITH_TESTS)
-
 add_custom_target(civetweb_h
   COMMAND ${CMAKE_COMMAND} -E make_directory
   "${CMAKE_BINARY_DIR}/src/include/civetweb"
@@ -372,3 +353,22 @@ endif()
 if(WITH_BOOST_CONTEXT)
   target_link_libraries(rgw_admin_user PRIVATE Boost::coroutine Boost::context)
 endif()
+
+if(WITH_TESTS)
+  add_executable(ceph_rgw_jsonparser
+    rgw_jsonparser.cc)
+  target_link_libraries(ceph_rgw_jsonparser
+    rgw_a
+    global rabbitmq)
+
+  add_executable(ceph_rgw_multiparser
+    rgw_multiparser.cc)
+  target_link_libraries(ceph_rgw_multiparser
+    rgw_a
+    global rabbitmq)
+
+  install(TARGETS
+    ceph_rgw_jsonparser
+    ceph_rgw_multiparser
+    DESTINATION bin)
+endif(WITH_TESTS)