add_library(tfe-library base64.cc build.cc cache.cc cachemgr.cc cachessess.cc compat.cc easylogging++.cc cachedsess.cc cachetgcrt.cc cachefkcrt.cc cert.cc certstore.cc logger.cc cfgparser.cc dynbuf.cc nat.cc opts.cc privsep.cc proxy.cc pxythrmgr.cc pxysslshut.cc pxyconn.cc ssl.cc sys.cc thrqueue.cc url.cc util.cc httpscan.cc httpaction.cc http1.cc http.cc stat.cc) #pxyconn.cc target_compile_definitions(tfe-library PUBLIC -DELPP_THREAD_SAFE -DELPP_FEATURE_ALL) target_link_libraries(tfe-library openssl-ssl-static openssl-crypto-static pthread libevent-static libevent-static-openssl libevent-static-pthreads http-parser-static MESA_prof_load-static MESA_field_stat2 jsoncpp rdkafka pcrecpp dl) target_link_libraries(tfe-library maatframe MESA_handle_logger) add_executable(tfe main.cc) target_compile_definitions(tfe PUBLIC -DELPP_THREAD_SAFE -DELPP_FEATURE_ALL) target_link_libraries(tfe tfe-library) install(TARGETS tfe RUNTIME DESTINATION ./)