Home | History | Annotate | Download | only in tool
      1 include_directories(../include)
      2 
      3 add_executable(
      4   bssl
      5 
      6   args.cc
      7   ciphers.cc
      8   client.cc
      9   const.cc
     10   digest.cc
     11   file.cc
     12   generate_ed25519.cc
     13   genrsa.cc
     14   pkcs12.cc
     15   rand.cc
     16   server.cc
     17   sign.cc
     18   speed.cc
     19   tool.cc
     20   transport_common.cc
     21 )
     22 
     23 add_dependencies(bssl global_target)
     24 
     25 if(APPLE OR WIN32 OR ANDROID)
     26   target_link_libraries(bssl ssl crypto)
     27 else()
     28   find_library(FOUND_LIBRT rt)
     29   if(FOUND_LIBRT)
     30     target_link_libraries(bssl ssl crypto -lrt)
     31   else()
     32     target_link_libraries(bssl ssl crypto)
     33   endif()
     34 endif()
     35