CMakeLists.txt 1.36 KB
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

find_package(Protobuf)

set (CTAProtoFiles
  cta.proto)

PROTOBUF_GENERATE_CPP(CTAProtoSources CTAProtoHeaders ${CTAProtoFiles})

14
add_library (CTAObjectStore
15
  ${CTAProtoSources}
16
17
18
  RootEntry.cpp
  Agent.cpp
  AgentRegister.cpp
19
  AgentWatchdog.cpp
20
  TapePool.cpp
21
  Tape.cpp
22
  ArchiveToFileRequest.cpp
23
  RetrieveToFileRequest.cpp
Eric Cano's avatar
Eric Cano committed
24
  DriveRegister.cpp
25
  BackendVFS.cpp
26
  BackendRados.cpp
27
  BackendFactory.cpp
28
  ObjectOps.cpp
29
  ProtocolBuffersAlgorithms.cpp
30
  GenericObject.cpp
31
32
  GarbageCollector.cpp
  SchedulerGlobalLock.cpp)
33
target_link_libraries(CTAObjectStore Utils rados)
34
set_source_files_properties(BackendRados.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
35

36
set(ObjectStoreUnitTests
37
38
  BackendTest.cpp
  RootEntryTest.cpp
39
  TapeTest.cpp
40
  GarbageCollectorTest.cpp
41
  ArchiveToFileRequestTest.cpp
42
)
43

Eric Cano's avatar
Eric Cano committed
44
45
add_library(ctaobjectstoreunittests SHARED ${ObjectStoreUnitTests})
target_link_libraries(ctaobjectstoreunittests
46
  protobuf rados ctacommon gtest gmock CTAObjectStore)
47
48
49

add_executable(makeMinimalVFS makeMinimalVFS.cpp)
target_link_libraries(makeMinimalVFS
50
51
52
53
54
  protobuf CTAObjectStore ctacommon)

add_executable(listObjectStore listObjectStore.cpp)
target_link_libraries(listObjectStore
  protobuf CTAObjectStore ctacommon)