ADD_LIBRARY (ubigraph SHARED
    UbigraphModule
    Ubigrapher
    BITUbigrapher
    client
)

INCLUDE_DIRECTORIES (
    ${CSOCKETS_INCLUDE_DIRS}
    ${OPENSSL_INCLUDE_DIR}
    ${ODBC_INCLUDE_DIRS}
)

TARGET_LINK_LIBRARIES(ubigraph
    m
    ${CURL_LIBRARIES} 
    ${XMLRPC_LIBRARIES}
    xmlrpc_client
)

INSTALL (TARGETS ubigraph
    LIBRARY DESTINATION "lib${LIB_DIR_SUFFIX}/opencog"
)

INSTALL (FILES
    UbigraphAPI.h
    UbigraphModule.h
    Ubigrapher.h
    BITUbigrapher.h
    DESTINATION "include/opencog/ubigraph"
)

ADD_LIBRARY (ubigraph SHARED
    UbigraphModule
    Ubigrapher
    BITUbigrapher
    client
)

INCLUDE_DIRECTORIES (
    ${CSOCKETS_INCLUDE_DIRS}
    ${OPENSSL_INCLUDE_DIR}
    ${ODBC_INCLUDE_DIRS}
)

TARGET_LINK_LIBRARIES(ubigraph
    m
    ${CURL_LIBRARIES} 
    ${XMLRPC_LIBRARIES}
)

INSTALL (TARGETS ubigraph
    LIBRARY DESTINATION "lib${LIB_DIR_SUFFIX}/opencog"
)

INSTALL (FILES
    UbigraphAPI.h
    UbigraphModule.h
    Ubigrapher.h
    BITUbigrapher.h
    DESTINATION "include/opencog/ubigraph"
)

Move Ubigraph client library files into OpenCog repository. Needed so that we can stop CogServer exiting when there is now Ubigraph visualisation server running.
Move Ubigraph client library files into OpenCog repository. Needed so that we can stop CogServer exiting when there is now Ubigraph visualisation server running.