# The storage_types.h file is written to the build directory
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR})
ADD_LIBRARY (persist-proxy SHARED
CachingProxy.cc
DynamicDataProxy.cc
NullProxy.cc
ProxyNode.cc
ReadThruProxy.cc
ReadWriteProxy.cc
SequentialReadProxy.cc
WriteBufferProxy.cc
WriteThruProxy.cc
)
# Without this, parallel make will race and crap up the generated files.
ADD_DEPENDENCIES(persist-proxy storage_types)
TARGET_LINK_LIBRARIES(persist-proxy
storage-types
persist
atomcore
atombase
${COGUTIL_LIBRARY}
)
# Arghhhh. I hate this stuff. This sets up a file-load path that the
# `(opencog persist)` module will use. There is no `(opencog persist-proxy)`
# module.
ADD_GUILE_EXTENSION(SCM_CONFIG persist-proxy "opencog-ext-path-persist-proxy")
INSTALL (TARGETS persist-proxy EXPORT AtomSpaceStorageTargets
DESTINATION "${CMAKE_INSTALL_LIBDIR}/opencog"
)
INSTALL (FILES
CachingProxy.h
DynamicDataProxy.h
NullProxy.h
ProxyNode.h
ReadThruProxy.h
ReadWriteProxy.h
SequentialReadProxy.h
WriteBufferProxy.h
WriteThruProxy.h
DESTINATION "include/opencog/persist/proxy"
)