]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: install the artifacts the packaging requires
authorKefu Chai <kchai@redhat.com>
Sat, 28 May 2016 07:42:33 +0000 (15:42 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 1 Jun 2016 15:49:46 +0000 (23:49 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt
src/test/CMakeLists.txt
src/test/bench/CMakeLists.txt
src/test/erasure-code/CMakeLists.txt
src/test/msgr/CMakeLists.txt
src/test/objectstore/CMakeLists.txt

index 7b3ee62673c104e34b8dd4d205d9352dd0f77bac..7f9cd07c74024a1915df6b7cd9fdfed69e6ca2d3 100644 (file)
@@ -586,6 +586,9 @@ install(TARGETS ceph-osdomap-tool DESTINATION bin)
 add_executable(ceph-monstore-tool tools/ceph_monstore_tool.cc)
 target_link_libraries(ceph-monstore-tool os global ${Boost_PROGRAM_OPTIONS_LIBRARY})
 install(TARGETS ceph-monstore-tool DESTINATION bin)
+install(PROGRAMS
+  tools/ceph-monstore-update-crush.sh
+  DESTINATION lib/ceph)
 
 add_executable(ceph-objectstore-tool
   tools/ceph_objectstore_tool.cc
@@ -635,8 +638,14 @@ if (WITH_CEPHFS)
     tools/cephfs/MDSUtility.cc)
   add_executable(cephfs-data-scan ${cephfs_data_scan_srcs})
   target_link_libraries(cephfs-data-scan librados mds osdc global
-                        cls_cephfs_client
-                        ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
+    cls_cephfs_client
+    ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
+
+  install(TARGETS
+    cephfs-journal-tool
+    cephfs-table-tool
+    cephfs-data-scan
+    DESTINATION bin)
 endif (WITH_CEPHFS)
 
 set(librados_config_srcs
@@ -1058,6 +1067,7 @@ install(PROGRAMS
   ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph
   ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-debugpack
   ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-coverage
+  ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-crush-location
   ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ceph-post-file
   ${CMAKE_SOURCE_DIR}/src/ceph-run
   ${CMAKE_SOURCE_DIR}/src/ceph-rest-api
@@ -1147,6 +1157,7 @@ endif(BUILD_SHARED_LIBS)
     target_link_libraries(ceph-fuse ${FUSE_LIBRARIES} client global)
     set_target_properties(ceph-fuse PROPERTIES COMPILE_FLAGS "-I${FUSE_INCLUDE_DIRS}")
     install(TARGETS ceph-fuse DESTINATION bin)
+    install(PROGRAMS mount.fuse.ceph DESTINATION /sbin)
   endif(HAVE_LIBFUSE)
 endif(WITH_LIBCEPHFS)
 
@@ -1459,6 +1470,14 @@ if(${WITH_RADOSGW})
   add_subdirectory(rgw)
 endif(${WITH_RADOSGW})
 
+install(FILES
+  sample.ceph.conf
+  DESTINATION ${CMAKE_INSTALL_DOCDIR})
+install(FILES
+  fetch_config
+  DESTINATION ${CMAKE_INSTALL_DOCDIR}
+  RENAME sample.fetch_config)
+
 # Now create a useable config.h
 configure_file(
   ${CMAKE_SOURCE_DIR}/src/include/config-h.in.cmake
index 2c4c0da2362bbec92e931c207ea5412d436d9a5b..07e83a1b4d70b44729a606d5e4b79e2b63bf5a5f 100644 (file)
@@ -372,6 +372,16 @@ target_link_libraries(ceph_xattr_bench
   ${CMAKE_DL_LIBS}
   )
 
+install(TARGETS
+  ceph_bench_log
+  ceph_kvstorebench
+  ceph_multi_stress_watch
+  ceph_objectstore_bench
+  ceph_omapbench
+  ceph_perf_local
+  ceph_xattr_bench
+  DESTINATION bin)
+
 # ceph_test_filejournal
 add_executable(ceph_test_filejournal
   test_filejournal.cc
index 6bd153f613784f4edb643d906485c2564e2ae3da..512376002f63eab34ec689ccfec12b50aa417d52 100644 (file)
@@ -73,3 +73,10 @@ add_executable(ceph_tpbench
 target_link_libraries(ceph_tpbench librados ${Boost_PROGRAM_OPTIONS_LIBRARY} global
   ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
 
+install(TARGETS
+  ceph_smalliobench
+  ceph_smalliobenchrbd
+  ceph_smalliobenchfs
+  ceph_smalliobenchdumb
+  ceph_tpbench
+  DESTINATION bin)
index ed6429f5d33f95b6dd8f40c06be8833407d4729f..4f96c0ef7329d6dc0f76634fe4c31b9a534a059a 100644 (file)
@@ -3,12 +3,16 @@ add_executable(ceph_erasure_code_benchmark
   ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
   ceph_erasure_code_benchmark.cc)
 target_link_libraries(ceph_erasure_code_benchmark osd common ${Boost_PROGRAM_OPTIONS_LIBRARY} global dl)
+install(TARGETS ceph_erasure_code_benchmark
+  DESTINATION bin)
 
 add_executable(ceph_erasure_code_non_regression ceph_erasure_code_non_regression.cc)
 target_link_libraries(ceph_erasure_code_non_regression osd common ${Boost_PROGRAM_OPTIONS_LIBRARY} global dl)
 
 add_executable(ceph_erasure_code ceph_erasure_code.cc)
 target_link_libraries(ceph_erasure_code osd common ${Boost_PROGRAM_OPTIONS_LIBRARY} global dl)
+install(TARGETS ceph_erasure_code
+  DESTINATION bin)
 
 add_library(ec_example SHARED 
   ErasureCodePluginExample.cc
index dd2e48d788b2f4f7516f20456872fadb8a5341e4..78b78dc7204491de1d8a37151132886a5889582a 100644 (file)
@@ -26,3 +26,7 @@ set_target_properties(ceph_perf_msgr_client PROPERTIES COMPILE_FLAGS
   ${UNITTEST_CXX_FLAGS})
 target_link_libraries(ceph_perf_msgr_client os global ${UNITTEST_LIBS})
 
+install(TARGETS
+  ceph_perf_msgr_server
+  ceph_perf_msgr_client
+  DESTINATION bin)
index 41c727700da01ff46a60e2bc775b6062cb41a979..233fffafa1e12b5ba6d94476d94b106451a93237 100644 (file)
@@ -5,6 +5,8 @@ add_executable(ceph_perf_objectstore
 set_target_properties(ceph_perf_objectstore PROPERTIES COMPILE_FLAGS
   ${UNITTEST_CXX_FLAGS})
 target_link_libraries(ceph_perf_objectstore os osdc global ${UNITTEST_LIBS})
+install(TARGETS ceph_perf_objectstore
+  DESTINATION bin)
 
 #ceph_test_objectstore
 add_executable(ceph_test_objectstore