cmake_minimum_required(VERSION 3.0)

if(${COMPILE_IO_URING})
    include_directories(BEFORE SYSTEM liburing ../edio/liburing/include)
endif()


SET(http_STAT_SRCS
   moduserdir.cpp
   contextnode.cpp
   phpconfig.cpp
   pipeappender.cpp
   awstats.cpp
   rewriterulelist.cpp
   throttlecontrol.cpp
   rewriteengine.cpp
   rewritemap.cpp
   rewriterule.cpp
   reqstats.cpp
   hotlinkctrl.cpp
   contextlist.cpp
   urimatch.cpp
   expiresctrl.cpp
   stderrlogger.cpp
   htauth.cpp
   userdir.cpp
   authuser.cpp
   httplistenerlist.cpp
   httpvhostlist.cpp
   htpasswd.cpp
   httphandler.cpp
   httplogsource.cpp
   accesslog.cpp
   accesscache.cpp
   clientinfo.cpp
   clientcache.cpp
   httprange.cpp
   connlimitctrl.cpp
   denieddir.cpp
   httpserverconfig.cpp
   httpextconnector.cpp
   statusurlmap.cpp
   contexttree.cpp
   httpcgitool.cpp
   httpsignals.cpp
   handlertype.cpp
   handlerfactory.cpp
   staticfilecachedata.cpp
   staticfilecache.cpp
   cacheelement.cpp
   httpcache.cpp
   chunkoutputstream.cpp
   chunkinputstream.cpp
   httplog.cpp
   httpmime.cpp
   sendfileinfo.cpp
   httpcontext.cpp
   httpserverversion.cpp
   vhostmap.cpp
   eventdispatcher.cpp
   staticfilehandler.cpp
   reqhandler.cpp
   httpvhost.cpp
   httpresourcemanager.cpp
   ntwkiolink.cpp
   httpmethod.cpp
   httpver.cpp
   httpstatuscode.cpp
   httpstatusline.cpp
   httpheader.cpp
   smartsettings.cpp
   httplistener.cpp
   httpresp.cpp
   httpreq.cpp
   httpsession.cpp
   iptogeo2.cpp
   iptoloc.cpp
   moov.cpp
   #requestvars.cpp
   hiostream.cpp
   hiohandlerfactory.cpp
   hiochainstream.cpp
   httprespheaders.cpp
   l4handler.cpp
   httpaiosendfile.cpp
   serverprocessconfig.cpp
   httpstats.cpp
   reqparser.cpp
   subrequest.cpp
   recaptcha.cpp
   expression.cpp
   useacme.cpp
)

add_library(http STATIC ${http_STAT_SRCS})
