X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2FCMakeLists.txt;h=1683d2665737c8ca9bf51c7471604200a98d3745;hp=ebc626f37be35b8d29512afa2145cd8b1a6bccc5;hb=3a3e844f9fcfd12235a0086af75ecd503b621ef4;hpb=4ce53949ab7d52a49ae79b8817bd3aa50fada0d1 diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index ebc626f3..1683d266 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -1,4 +1,4 @@ -quassel_add_module(Common) +quassel_add_module(Common EXPORT) target_sources(${TARGET} PRIVATE abstractsignalwatcher.h @@ -56,8 +56,6 @@ target_sources(${TARGET} PRIVATE # needed for automoc irccap.h protocol.h - - ${COMMON_RCS} ) # Needed for finding the generated version.h @@ -70,6 +68,10 @@ target_link_libraries(${TARGET} PUBLIC ZLIB::ZLIB ) +if (EMBED_DATA) + set_property(SOURCE quassel.cpp APPEND PROPERTY COMPILE_DEFINITIONS EMBED_DATA) +endif() + if (HAVE_SYSLOG) target_compile_definitions(${TARGET} PRIVATE -DHAVE_SYSLOG) endif() @@ -91,6 +93,4 @@ if (APPLE) target_link_libraries(${TARGET} PUBLIC "-framework CoreServices" "-framework CoreFoundation") endif() -# 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(${TARGET} po) +target_link_if_exists(${TARGET} PUBLIC Quassel::Resource::I18n)