X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=3043bb12a1def2bf089a76ec44ce6d7ba563def9;hp=0e3e2a1cb4e1dee8679537913134603e0260ed6b;hb=a4568e36edde5b86feeaae740a396f1bcaca1967;hpb=d20a7db77425fab0c44e5bf307ba0061ddaf9faf diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 0e3e2a1c..3043bb12 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -1,7 +1,6 @@ # Builds the common module -set(QT_DONT_USE_QTGUI 1) -set(QT_USE_QTNETWORK 1) -include(${QT_USE_FILE}) + +setup_qt_variables(Core Network) set(SOURCES aliasmanager.cpp @@ -12,11 +11,13 @@ set(SOURCES bufferviewconfig.cpp bufferviewmanager.cpp cliparser.cpp + coreinfo.cpp ctcpevent.cpp event.cpp eventmanager.cpp identity.cpp ignorelistmanager.cpp + internalconnection.cpp ircchannel.cpp ircevent.cpp irclisthelper.cpp @@ -28,10 +29,14 @@ set(SOURCES networkconfig.cpp networkevent.cpp quassel.cpp + remoteconnection.cpp settings.cpp signalproxy.cpp syncableobject.cpp - util.cpp) + util.cpp + + protocols/legacy/legacyconnection.cpp +) set(MOC_HDRS aliasmanager.h @@ -44,14 +49,19 @@ set(MOC_HDRS eventmanager.h identity.h ignorelistmanager.h + internalconnection.h ircchannel.h irclisthelper.h ircuser.h network.h networkconfig.h + remoteconnection.h settings.h signalproxy.h - syncableobject.h) + syncableobject.h + + protocols/legacy/legacyconnection.h +) set(HEADERS ${MOC_HDRS} abstractcliparser.h @@ -60,10 +70,11 @@ set(HEADERS ${MOC_HDRS} ctcpevent.h event.h ircevent.h - networkevent.h messageevent.h + networkevent.h logger.h message.h + protocol.h types.h util.h) @@ -79,12 +90,16 @@ if(CMAKE_HOST_UNIX) set(SOURCES ${SOURCES} logbacktrace_unix.cpp) endif(CMAKE_HOST_UNIX) -qt4_wrap_cpp(MOC ${MOC_HDRS}) +include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR} ${QUASSEL_QT_INCLUDES}) # for version.inc and version.gen + +if(NOT WITH_QT5) + qt4_wrap_cpp(MOC ${MOC_HDRS}) +endif(NOT WITH_QT5) -include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}) # for version.inc and version.gen set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES version.gen) -add_library(mod_common STATIC ${SOURCES} ${MOC}) +add_library(mod_common STATIC ${SOURCES} ${HEADERS} ${MOC}) +set_target_properties(mod_common PROPERTIES COMPILE_FLAGS "${QUASSEL_QT_COMPILEFLAGS}") if(APPLE) target_link_libraries(mod_common "-framework CoreServices" "-framework CoreFoundation")