############################################################################ # CMakeLists.txt file for building ROOT net/rpdutils package # @author Pere Mato, CERN ############################################################################ ROOT_USE_PACKAGE(net/net) ROOT_USE_PACKAGE(net/auth) ROOT_GLOB_SOURCES(rpdutilsrcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cxx) list(REMOVE_ITEM rpdutilsrcs src/rpdpriv.cxx src/rpdconn.cxx) if(globus) add_definitions(-DR__GLBS) include_directories(${GLOBUS_INCLUDE_DIRS}) if(GLOBUS_gsi_credential_FOUND) add_definitions(-DR__GLBS22) endif() else() list(REMOVE_ITEM rpdutilsrcs src/globus.cxx) endif() #---Authentication methods----------------------------------------------------------------- if(shadowpw) add_definitions(-DR__SHADOWPW) endif() #---static library needed for rootd and proofd -------------------------------------------- add_library(rpdutil STATIC ${rpdutilsrcs}) ROOT_LINKER_LIBRARY(SrvAuth rpdutils.cxx ssh.cxx LIBRARIES rpdutil rsa ${CRYPTLIBS} ${GLOBUS_LIBRARIES} ${OPENSSL_LIBRARIES} DEPENDENCIES Net)