CMakeLists.txt 1.65 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
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
Eric Cano's avatar
Eric Cano committed
21
  DriveRegister.cpp
22
  #AdminUsersList.cpp
23
  BackendVFS.cpp
24
  BackendRados.cpp
25
  ObjectOps.cpp
26
  ProtocolBuffersAlgorithms.cpp
27
  #FIFO.cpp
28
  GenericObject.cpp
Eric Cano's avatar
Eric Cano committed
29
  GarbageCollector.cpp)
30

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# add_executable(tapeResourceManagerTest tapeResourceManagerTest.cpp)
# target_link_libraries(tapeResourceManagerTest
#   protobuf rados CTAObjectStore)
# 
# add_executable(dumpStructure dumpStructure.cpp)
# target_link_libraries(dumpStructure
#   protobuf rados CTAObjectStore)
# 
# add_executable(jobPoster jobPoster.cpp)
# target_link_libraries(jobPoster
#   protobuf rados CTAObjectStore)
# 
# add_executable(recaller recaller.cpp)
# target_link_libraries(recaller
#   protobuf rados CTAObjectStore)
# 
# add_executable(garbageCollector garbageCollector.cpp)
# target_link_libraries(garbageCollector
#   protobuf rados CTAObjectStore)
# 
# add_executable(createEnvironment createEnvironment.cpp)
# target_link_libraries(createEnvironment
#   protobuf rados CTAObjectStore)

55
set(ObjectStoreUnitTests
56
57
  BackendTest.cpp
  RootEntryTest.cpp
58
  #FIFOTest.cpp
59
  GarbageCollectorTest.cpp
60
)
61

Eric Cano's avatar
Eric Cano committed
62
63
add_library(ctaobjectstoreunittests SHARED ${ObjectStoreUnitTests})
target_link_libraries(ctaobjectstoreunittests
64
  protobuf rados ctacommon gtest gmock)