summaryrefslogtreecommitdiffstats
path: root/src/crush/CMakeLists.txt
blob: ae9b9f472beeb6a1ed65666c7c620709861f3bc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set(crush_srcs
  builder.c
  mapper.c
  crush.c
  hash.c
  CrushWrapper.cc
  CrushCompiler.cc
  CrushTester.cc
  CrushLocation.cc)

add_library(crush_objs OBJECT ${crush_srcs})

if(WITH_SEASTAR)
  add_library(crimson-crush OBJECT ${crush_srcs})
  target_compile_definitions(crimson-crush PRIVATE
    "WITH_SEASTAR=1")
  target_include_directories(crimson-crush PRIVATE
    $<TARGET_PROPERTY:Seastar::seastar,INTERFACE_INCLUDE_DIRECTORIES>)
endif()