CMakeLists.txt 913 Bytes
Newer Older
1
2
cmake_minimum_required (VERSION 2.6)

3
4
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../middletier)
5
6
7
8
9
10
11
12
13
include_directories(${CMAKE_BINARY_DIR})

find_package(Protobuf)

set (CTAProtoFiles
  cta.proto)

PROTOBUF_GENERATE_CPP(CTAProtoSources CTAProtoHeaders ${CTAProtoFiles})

Eric Cano's avatar
Eric Cano committed
14
add_library (CTAObjectStore SHARED
15
  ${CTAProtoSources}
16
17
18
  RootEntry.cpp
  Agent.cpp
  AgentRegister.cpp
19
  AgentWatchdog.cpp
20
  TapePool.cpp
21
  Tape.cpp
22
  ArchiveToFileRequest.cpp
Eric Cano's avatar
Eric Cano committed
23
  DriveRegister.cpp
24
  BackendVFS.cpp
25
  BackendRados.cpp
26
  ObjectOps.cpp
27
  ProtocolBuffersAlgorithms.cpp
28
  GenericObject.cpp
Eric Cano's avatar
Eric Cano committed
29
  GarbageCollector.cpp)
30

31
set(ObjectStoreUnitTests
32
33
  BackendTest.cpp
  RootEntryTest.cpp
34
  TapeTest.cpp
35
  GarbageCollectorTest.cpp
36
)
37

Eric Cano's avatar
Eric Cano committed
38
39
add_library(ctaobjectstoreunittests SHARED ${ObjectStoreUnitTests})
target_link_libraries(ctaobjectstoreunittests
40
  protobuf rados ctacommon gtest gmock)