]> git.proxmox.com Git - ceph.git/blob - ceph/src/compressor/lz4/CMakeLists.txt
update sources to v12.1.0
[ceph.git] / ceph / src / compressor / lz4 / CMakeLists.txt
1 # lz4
2
3 set(lz4_sources
4 CompressionPluginLZ4.cc
5 )
6
7 add_library(ceph_lz4 SHARED ${lz4_sources})
8 add_dependencies(ceph_lz4 ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)
9 target_link_libraries(ceph_lz4 ${LZ4_LIBRARY})
10 set_target_properties(ceph_lz4 PROPERTIES
11 VERSION 2.0.0
12 SOVERSION 2
13 INSTALL_RPATH "")
14 install(TARGETS ceph_lz4 DESTINATION ${compressor_plugin_dir})
15
16 if(WITH_EMBEDDED)
17 add_library(cephd_compressor_lz4 STATIC ${lz4_sources})
18 set_target_properties(cephd_compressor_lz4 PROPERTIES COMPILE_DEFINITIONS BUILDING_FOR_EMBEDDED)
19 endif()