X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=23e5601e032b9fbfaa77c0de3dacd75a82b4f305;hp=b2f9c71ab9836affbfbff563fe7142e0f00deb91;hb=921e54680da16fcf2adb7a90506875aceb6633a4;hpb=2273a95ba9c277ce6dd7a67158a3d3ed9f161182;ds=sidebyside diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index b2f9c71a..23e5601e 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -29,6 +29,7 @@ set(SOURCES networkevent.cpp peer.cpp peerfactory.cpp + presetnetworks.cpp quassel.cpp remotepeer.cpp settings.cpp @@ -57,6 +58,10 @@ else() set(SOURCES ${SOURCES} ../../3rdparty/miniz/miniz.c) endif() +if (HAVE_SYSLOG) + add_definitions(-DHAVE_SYSLOG) +endif() + if(APPLE) set(SOURCES ${SOURCES} mac_utils.cpp) endif(APPLE) @@ -71,6 +76,8 @@ else() set(SOURCES ${SOURCES} logbacktrace_unix.cpp) endif() +qt_add_resources(SOURCES ${COMMON_RCS}) + add_library(mod_common STATIC ${SOURCES}) qt_use_modules(mod_common Core Network) @@ -79,3 +86,7 @@ if(APPLE) endif(APPLE) target_link_libraries(mod_common ${CMAKE_DL_LIBS} ${EXECINFO_LIBRARIES} ${ZLIB_LIBRARIES}) + +# This is needed so translations are generated before trying to build the qrc. +# Should probably find a nicer solution with proper dependencies between the involved files, though... +add_dependencies(mod_common po)