X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=0191c811c507638664db46091a834ada75d2f94b;hp=b03ef4551f1338af271391bc243fd7ca9c95efbd;hb=3dc6e69f93fb1c0af8120e52052fbf513076025c;hpb=902c95728306e5ba115de84800fc8d5d239c9d62 diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index b03ef455..0191c811 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -1,7 +1,74 @@ -SET(common_SRCS global.cpp logger.cpp message.cpp settings.cpp signalproxy.cpp util.cpp synchronizer.cpp networkinfo.cpp ircuser.cpp ircchannel.cpp) -SET(common_HDRS global.h message.h util.h) -SET(common_MOCS logger.h synchronizer.h networkinfo.h ircuser.h ircchannel.h settings.h signalproxy.h) +# Builds the common module -QT4_WRAP_CPP(_MOC ${common_MOCS}) -ADD_LIBRARY(common ${common_SRCS} ${_MOC}) -TARGET_LINK_LIBRARIES(common qxt) +set(SOURCES + aliasmanager.cpp + authhandler.cpp + backlogmanager.cpp + basichandler.cpp + bufferinfo.cpp + buffersyncer.cpp + bufferviewconfig.cpp + bufferviewmanager.cpp + cliparser.cpp + compressor.cpp + ctcpevent.cpp + event.cpp + eventmanager.cpp + identity.cpp + ignorelistmanager.cpp + internalpeer.cpp + ircchannel.cpp + ircevent.cpp + irclisthelper.cpp + ircuser.cpp + logger.cpp + message.cpp + messageevent.cpp + network.cpp + networkconfig.cpp + networkevent.cpp + peer.cpp + peerfactory.cpp + quassel.cpp + remotepeer.cpp + settings.cpp + signalproxy.cpp + syncableobject.cpp + transfer.cpp + transfermanager.cpp + util.cpp + + protocols/datastream/datastreampeer.cpp + protocols/legacy/legacypeer.cpp + + # needed for automoc + coreinfo.h +) + + +if (HAVE_QCA2) + set(SOURCES ${SOURCES} keyevent.cpp) +endif(HAVE_QCA2) + +if (NOT ZLIB_FOUND) + set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c) +endif() + +if(APPLE) + set(SOURCES ${SOURCES} mac_utils.cpp) +endif(APPLE) + +if (WIN32) + set(SOURCES ${SOURCES} logbacktrace_win.cpp) +elseif (UNIX) + set(SOURCES ${SOURCES} logbacktrace_unix.cpp) +endif() + +add_library(mod_common STATIC ${SOURCES}) +qt_use_modules(mod_common Core Network) + +if(APPLE) + target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation") +endif(APPLE) + +target_link_libraries(mod_common ${CMAKE_DL_LIBS})