Skip to content

Commit

Permalink
cmake: radosgw, radosgw-admin related fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Yehuda Sadeh <[email protected]>
  • Loading branch information
yehudasa committed Feb 20, 2015
1 parent 4feb171 commit 170c88d
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -737,31 +737,6 @@ if(${WITH_RADOSGW})

include_directories("${CMAKE_SOURCE_DIR}/src/civetweb/include")

set(radosgw_srcs
rgw/rgw_civetweb.cc
rgw/rgw_resolve.cc
rgw/rgw_rest.cc
rgw/rgw_rest_swift.cc
rgw/rgw_rest_s3.cc
rgw/rgw_rest_usage.cc
rgw/rgw_rest_user.cc
rgw/rgw_rest_bucket.cc
rgw/rgw_http_client.cc
rgw/rgw_swift.cc
rgw/rgw_swift_auth.cc
rgw/rgw_main.cc
rgw/rgw_keystone.cc
rgw/rgw_loadgen.cc
rgw/rgw_rest_client.cc
rgw/rgw_metadata.cc
rgw/rgw_rest_config.cc
rgw/rgw_rest_conn.cc
rgw/rgw_rest_log.cc
rgw/rgw_rest_metadata.cc
rgw/rgw_rest_opstate.cc
rgw/rgw_rest_replica_log.cc
${kvs_srcs})

set(radosgw_srcs
rgw/rgw_resolve.cc
rgw/rgw_rest.cc
Expand All @@ -785,11 +760,22 @@ if(${WITH_RADOSGW})
civetweb/src/civetweb.c
rgw/rgw_main.cc)

set(radosgw_admin_srcs
rgw/rgw_admin.cc)

add_executable(radosgw ${radosgw_srcs} $<TARGET_OBJECTS:heap_profiler_objs>)
target_link_libraries(radosgw rgw_a librados
cls_rgw_client cls_lock_client cls_refcount_client
cls_log_client cls_statelog_client cls_version_client
cls_replica_log_client cls_user_client
curl expat global fcgi resolv ${TCMALLOC_LIBS})
install(TARGETS radosgw DESTINATION bin)

add_executable(radosgw-admin ${radosgw_admin_srcs} $<TARGET_OBJECTS:heap_profiler_objs>)
target_link_libraries(radosgw-admin rgw_a librados
cls_rgw_client cls_lock_client cls_refcount_client
cls_log_client cls_statelog_client cls_version_client
cls_replica_log_client cls_user_client
curl expat global fcgi resolv ${TCMALLOC_LIBS})
install(TARGETS radosgw-admin DESTINATION bin)
endif(${WITH_RADOSGW})

0 comments on commit 170c88d

Please sign in to comment.