Skip to content
Snippets Groups Projects
CMakeLists.txt 818 B
Newer Older
Fons Rademakers's avatar
Fons Rademakers committed
############################################################################
# CMakeLists.txt file for building ROOT net/auth package
# @author Pere Mato, CERN
############################################################################

add_library(rsa STATIC src/rsaaux.cxx src/rsalib.cxx src/rsafun.cxx)
target_include_directories(rsa PUBLIC res)
set_property(TARGET rsa PROPERTY POSITION_INDEPENDENT_CODE ON)
ROOT_STANDARD_LIBRARY_PACKAGE(RootAuth
  HEADERS
    AuthConst.h
    TAuthenticate.h
    THostAuth.h
    TRootAuth.h
    TRootSecContext.h
  SOURCES
    TAuthenticate.cxx
    THostAuth.cxx
    TRootAuth.cxx
    TRootSecContext.cxx
  LINKDEF
    LinkDefRoot.h
  LIBRARIES
    ${CRYPTLIBS} rsa
  DEPENDENCIES
    Net
    RIO
)
Fons Rademakers's avatar
Fons Rademakers committed

if(ssl)
  target_link_libraries(RootAuth PUBLIC ${OPENSSL_LIBRARIES})
Fons Rademakers's avatar
Fons Rademakers committed
endif()