X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=23e5601e032b9fbfaa77c0de3dacd75a82b4f305;hp=36218f465fe6ed32ede0fe36ff3b16d6c2485719;hb=921e54680da16fcf2adb7a90506875aceb6633a4;hpb=84cd3561e97167ffb98ecab0fd2b884ba1d13ada diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 36218f46..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 @@ -75,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) @@ -83,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)