blob: 213ece5a66cee532a3ecce7da46fecc2169a72b6 [file] [log] [blame]
# Options
option(LOG4CXX_BLOCKING_ASYNC_APPENDER "Async appender behaviour" ON)
# Build the log4cxx library
add_library(log4cxx action.cpp)
if(BUILD_SHARED_LIBS)
target_compile_definitions(log4cxx PRIVATE LOG4CXX)
else()
target_compile_definitions(log4cxx PUBLIC LOG4CXX_STATIC)
endif()
add_dependencies(log4cxx configure_log4cxx)
target_sources(log4cxx
PRIVATE
andfilter.cpp
appenderattachableimpl.cpp
appenderskeleton.cpp
aprinitializer.cpp
$<IF:$<BOOL:LOG4CXX_BLOCKING_ASYNC_APPENDER>,asyncappender.cpp,asyncappender_nonblocking.cpp>
basicconfigurator.cpp
bufferedwriter.cpp
bytearrayinputstream.cpp
bytearrayoutputstream.cpp
bytebuffer.cpp
cacheddateformat.cpp
charsetdecoder.cpp
charsetencoder.cpp
class.cpp
classnamepatternconverter.cpp
classregistration.cpp
condition.cpp
configurator.cpp
consoleappender.cpp
cyclicbuffer.cpp
dailyrollingfileappender.cpp
datagrampacket.cpp
datagramsocket.cpp
date.cpp
dateformat.cpp
datelayout.cpp
datepatternconverter.cpp
defaultconfigurator.cpp
defaultloggerfactory.cpp
defaultrepositoryselector.cpp
domconfigurator.cpp
exception.cpp
fallbackerrorhandler.cpp
file.cpp
fileappender.cpp
filedatepatternconverter.cpp
fileinputstream.cpp
filelocationpatternconverter.cpp
fileoutputstream.cpp
filerenameaction.cpp
filewatchdog.cpp
filter.cpp
filterbasedtriggeringpolicy.cpp
fixedwindowrollingpolicy.cpp
formattinginfo.cpp
fulllocationpatternconverter.cpp
gzcompressaction.cpp
hierarchy.cpp
htmllayout.cpp
inetaddress.cpp
inputstream.cpp
inputstreamreader.cpp
integer.cpp
integerpatternconverter.cpp
jsonlayout.cpp
layout.cpp
level.cpp
levelmatchfilter.cpp
levelpatternconverter.cpp
levelrangefilter.cpp
linelocationpatternconverter.cpp
lineseparatorpatternconverter.cpp
literalpatternconverter.cpp
loader.cpp
locale.cpp
locationinfo.cpp
logger.cpp
loggermatchfilter.cpp
loggerpatternconverter.cpp
loggingevent.cpp
loggingeventpatternconverter.cpp
loglog.cpp
logmanager.cpp
logstream.cpp
manualtriggeringpolicy.cpp
mapfilter.cpp
mdc.cpp
messagebuffer.cpp
messagepatternconverter.cpp
methodlocationpatternconverter.cpp
mutex.cpp
nameabbreviator.cpp
namepatternconverter.cpp
ndc.cpp
ndcpatternconverter.cpp
nteventlogappender.cpp
objectimpl.cpp
objectoutputstream.cpp
objectptr.cpp
obsoleterollingfileappender.cpp
odbcappender.cpp
onlyonceerrorhandler.cpp
optionconverter.cpp
outputdebugstringappender.cpp
outputstream.cpp
outputstreamwriter.cpp
patternconverter.cpp
patternlayout.cpp
patternparser.cpp
pool.cpp
properties.cpp
propertiespatternconverter.cpp
propertyconfigurator.cpp
propertyresourcebundle.cpp
propertysetter.cpp
reader.cpp
relativetimedateformat.cpp
relativetimepatternconverter.cpp
resourcebundle.cpp
rollingfileappender.cpp
rollingpolicy.cpp
rollingpolicybase.cpp
rolloverdescription.cpp
rootlogger.cpp
serversocket.cpp
simpledateformat.cpp
simplelayout.cpp
sizebasedtriggeringpolicy.cpp
smtpappender.cpp
socket.cpp
socketappender.cpp
socketappenderskeleton.cpp
sockethubappender.cpp
socketoutputstream.cpp
strftimedateformat.cpp
stringhelper.cpp
stringmatchfilter.cpp
stringtokenizer.cpp
synchronized.cpp
syslogappender.cpp
syslogwriter.cpp
system.cpp
systemerrwriter.cpp
systemoutwriter.cpp
telnetappender.cpp
threadcxx.cpp
threadlocal.cpp
threadpatternconverter.cpp
threadspecificdata.cpp
throwableinformationpatternconverter.cpp
timebasedrollingpolicy.cpp
timezone.cpp
transcoder.cpp
transform.cpp
triggeringpolicy.cpp
ttcclayout.cpp
writer.cpp
writerappender.cpp
xmllayout.cpp
xmlsocketappender.cpp
zipcompressaction.cpp
)
set_target_properties(log4cxx PROPERTIES
VERSION ${LIBLOG4CXX_LIB_VERSION}
SOVERSION ${LIBLOG4CXX_LIB_SOVERSION}
)