############################################################################
# CMakeLists.txt file for building ROOT net/netx package
# @author Pere Mato, CERN
############################################################################

ROOT_USE_PACKAGE(net/net)
ROOT_USE_PACKAGE(proof/proofd)

include_directories(${XROOTD_INCLUDE_DIRS})
add_definitions(${XROOTD_CFLAGS})
#---------------------------------------------------------------------------

ROOT_GENERATE_DICTIONARY(G__Netx *.h LINKDEF LinkDef.h)
ROOT_GENERATE_ROOTMAP(Netx LINKDEF LinkDef.h DEPENDENCIES Net RIO Thread)
ROOT_LINKER_LIBRARY(Netx *.cxx G__Netx.cxx LIBRARIES ${XROOTD_LIBRARIES} DEPENDENCIES Net RIO Thread)

if(builtin_xrootd)
  ROOT_ADD_BUILTIN_DEPENDENCIES(Netx XROOTD)
endif()

ROOT_INSTALL_HEADERS()

############################################################################
# CMakeLists.txt file for building ROOT net/netx package
# @author Pere Mato, CERN
############################################################################

ROOT_USE_PACKAGE(net/net)
ROOT_USE_PACKAGE(proof/proofd)

include_directories(${XROOTD_INCLUDE_DIRS})
include_directories(${CMAKE_SOURCE_DIR}/proof/proofd/inc)
add_definitions(${XROOTD_CFLAGS})
#---------------------------------------------------------------------------

ROOT_GENERATE_DICTIONARY(G__Netx *.h LINKDEF LinkDef.h)
ROOT_GENERATE_ROOTMAP(Netx LINKDEF LinkDef.h DEPENDENCIES Net RIO Thread)
ROOT_LINKER_LIBRARY(Netx *.cxx G__Netx.cxx LIBRARIES ${XROOTD_LIBRARIES} DEPENDENCIES Net RIO Thread)

if(builtin_xrootd)
  ROOT_ADD_BUILTIN_DEPENDENCIES(Netx XROOTD)
endif()

ROOT_INSTALL_HEADERS()

Fix next build when OpenSSL is not found (OS X 10.11)
Fix next build when OpenSSL is not found (OS X 10.11)
