-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: restructure src/CMakeLists.txt in a more hierarchical way
Signed-off-by: Kefu Chai <kchai@redhat.com>
- Loading branch information
Showing
5 changed files
with
134 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
add_executable(ceph-client-debug ceph-client-debug.cc) | ||
target_link_libraries(ceph-client-debug cephfs librados global common) | ||
install(TARGETS ceph-client-debug DESTINATION bin) | ||
|
||
add_executable(ceph-kvstore-tool ceph_kvstore_tool.cc) | ||
target_link_libraries(ceph-kvstore-tool os global ${UNITTEST_CXX_FLAGS}) | ||
install(TARGETS ceph-kvstore-tool DESTINATION bin) | ||
|
||
set(ceph_conf_srcs ceph_conf.cc) | ||
add_executable(ceph-conf ${ceph_conf_srcs}) | ||
target_link_libraries(ceph-conf global) | ||
install(TARGETS ceph-conf DESTINATION bin) | ||
|
||
set(monmaptool_srcs monmaptool.cc) | ||
add_executable(monmaptool ${monmaptool_srcs}) | ||
target_link_libraries(monmaptool global) | ||
install(TARGETS monmaptool DESTINATION bin) | ||
|
||
set(osdomaptool_srcs osdmaptool.cc) | ||
add_executable(osdmaptool ${osdomaptool_srcs}) | ||
target_link_libraries(osdmaptool global) | ||
install(TARGETS osdmaptool DESTINATION bin) | ||
|
||
set(ceph_psim_srcs psim.cc) | ||
add_executable(ceph_psim ${ceph_psim_srcs}) | ||
target_link_libraries(ceph_psim global) | ||
install(TARGETS ceph_psim DESTINATION bin) | ||
|
||
set(ceph_authtool_srcs ceph_authtool.cc) | ||
add_executable(ceph-authtool ${ceph_authtool_srcs}) | ||
target_link_libraries(ceph-authtool global ${EXTRALIBS} ${CRYPTO_LIBS}) | ||
install(TARGETS ceph-authtool DESTINATION bin) | ||
|
||
if(WITH_RBD) | ||
add_subdirectory(rbd) | ||
add_subdirectory(rbd_mirror) | ||
add_subdirectory(rbd_nbd) | ||
endif(WITH_RBD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
set(rbd_srcs | ||
rbd.cc | ||
ArgumentTypes.cc | ||
IndentStream.cc | ||
OptionPrinter.cc | ||
Shell.cc | ||
Utils.cc | ||
action/Bench.cc | ||
action/Children.cc | ||
action/Clone.cc | ||
action/Copy.cc | ||
action/Create.cc | ||
action/Diff.cc | ||
action/DiskUsage.cc | ||
action/Export.cc | ||
action/ExportDiff.cc | ||
action/Feature.cc | ||
action/Flatten.cc | ||
action/Group.cc | ||
action/ImageMeta.cc | ||
action/Import.cc | ||
action/ImportDiff.cc | ||
action/Info.cc | ||
action/Journal.cc | ||
action/Kernel.cc | ||
action/List.cc | ||
action/Lock.cc | ||
action/MergeDiff.cc | ||
action/MirrorPool.cc | ||
action/MirrorImage.cc | ||
action/Nbd.cc | ||
action/ObjectMap.cc | ||
action/Remove.cc | ||
action/Rename.cc | ||
action/Resize.cc | ||
action/Snap.cc | ||
action/Status.cc | ||
action/Watch.cc) | ||
add_executable(rbd ${rbd_srcs} | ||
$<TARGET_OBJECTS:common_util_obj> | ||
$<TARGET_OBJECTS:parse_secret_objs> | ||
$<TARGET_OBJECTS:common_texttable_obj> | ||
$<TARGET_OBJECTS:krbd_objs>) | ||
set_target_properties(rbd PROPERTIES OUTPUT_NAME rbd) | ||
target_link_libraries(rbd librbd librados global common keyutils udev | ||
${Boost_REGEX_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} | ||
${BLKID_LIBRARIES} ${CMAKE_DL_LIBS}) | ||
install(TARGETS rbd DESTINATION bin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
set(rbd_mirror_internal | ||
ClusterWatcher.cc | ||
ImageReplayer.cc | ||
ImageDeleter.cc | ||
ImageSync.cc | ||
ImageSyncThrottler.cc | ||
Mirror.cc | ||
PoolWatcher.cc | ||
Replayer.cc | ||
Threads.cc | ||
types.cc | ||
image_replayer/BootstrapRequest.cc | ||
image_replayer/CloseImageRequest.cc | ||
image_replayer/CreateImageRequest.cc | ||
image_replayer/OpenImageRequest.cc | ||
image_replayer/OpenLocalImageRequest.cc | ||
image_replayer/ReplayStatusFormatter.cc | ||
image_sync/ImageCopyRequest.cc | ||
image_sync/ObjectCopyRequest.cc | ||
image_sync/SnapshotCopyRequest.cc | ||
image_sync/SnapshotCreateRequest.cc | ||
image_sync/SyncPointCreateRequest.cc | ||
image_sync/SyncPointPruneRequest.cc) | ||
add_library(rbd_mirror_internal STATIC | ||
${rbd_mirror_internal}) | ||
|
||
add_executable(rbd-mirror | ||
main.cc | ||
${CMAKE_SOURCE_DIR}/src/common/ContextCompletion.cc) | ||
target_link_libraries(rbd-mirror | ||
rbd_mirror_internal | ||
rbd_internal | ||
rbd_api | ||
rbd_types | ||
journal | ||
librados | ||
osdc | ||
cls_rbd_client | ||
cls_lock_client | ||
cls_journal_client | ||
global) | ||
install(TARGETS rbd-mirror DESTINATION bin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
add_executable(rbd-nbd rbd_nbd/rbd-nbd.cc | ||
$<TARGET_OBJECTS:parse_secret_objs>) | ||
target_link_libraries(rbd-nbd librbd librados global keyutils | ||
${Boost_REGEX_LIBRARY}) | ||
install(TARGETS rbd-nbd DESTINATION bin) |