summaryrefslogtreecommitdiffstats
path: root/src/libcephfs_proxy/CMakeLists.txt
blob: e19841241e7e0495f5595b767993baf17aa382d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set(proxy_common_srcs proxy_link.c proxy_log.c)
set(libcephfsd_srcs libcephfsd.c proxy_manager.c proxy_mount.c proxy_helpers.c ${proxy_common_srcs})
set(libcephfs_proxy_srcs libcephfs_proxy.c ${proxy_common_srcs})

add_executable(libcephfsd ${libcephfsd_srcs})
add_library(cephfs_proxy ${CEPH_SHARED} ${libcephfs_proxy_srcs})

target_link_libraries(libcephfsd cephfs ${CRYPTO_LIBS})

if(ENABLE_SHARED)
  set_target_properties(cephfs_proxy PROPERTIES
    OUTPUT_NAME cephfs_proxy
    VERSION 2.0.0
    SOVERSION 2)
endif(ENABLE_SHARED)

install(TARGETS libcephfsd DESTINATION ${CMAKE_INSTALL_SBINDIR})
install(TARGETS cephfs_proxy DESTINATION ${CMAKE_INSTALL_LIBDIR})