X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=52560a12bfbd1fd30e395ed17cd9d574e3fe7ef0;hp=101498c87933a6a6692fbddb9bbdd0d2959a0caa;hb=bc544f569faedea50c7715844a2261872796c683;hpb=b571f515e6e2ec9fcc69e600f4f6d5aecfe86f29 diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 101498c8..52560a12 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -47,7 +47,7 @@ set(SOURCES ) -if (QCA2_FOUND) +if (QCA2_FOUND OR QCA2-QT5_FOUND) set(SOURCES ${SOURCES} keyevent.cpp) endif() @@ -76,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) @@ -84,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)