X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=a644934fd0a23231f42317399e1357d072dc6cd8;hb=7f8c7852c2ee6b529fbc6c5fa38b49b53b15af1a;hp=3a88d2810e49fd2977fda259163ead950dbf763d;hpb=84cd3561e97167ffb98ecab0fd2b884ba1d13ada;p=quassel.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3a88d281..a644934f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -22,14 +22,21 @@ endif(BUILD_GUI) include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}) # for version.gen -# Add resources. Can't be done in other subdirs apparently. -# Note that these variables need to contain paths relative to src/ (this dir) -qt_add_resources(CLIENT_DEPS ${CLIENT_RCS}) -qt_add_resources(CORE_DEPS ${CORE_RCS}) -qt_add_resources(COMMON_DEPS ${COMMON_RCS}) +# We need to initialize the appropriate resources, so let's give our main.cpp some hints +if (EMBED_DATA) + add_definitions(-DEMBED_DATA) +endif() +if (WITH_OXYGEN) + add_definitions(-DWITH_OXYGEN) +endif() + +# Needed for showing the cli option if appropriate +if (HAVE_SYSLOG) + add_definitions(-DHAVE_SYSLOG) +endif() if(WANT_CORE) - add_executable(quasselcore common/main.cpp ${COMMON_DEPS} ${CORE_DEPS}) + add_executable(quasselcore common/main.cpp ${CORE_DEPS} ${COMMON_DEPS}) qt_use_modules(quasselcore Core Network ${CORE_QT_MODULES}) add_dependencies(quasselcore po) set_target_properties(quasselcore PROPERTIES @@ -44,7 +51,7 @@ if (KDE4_FOUND) endif() if(WANT_QTCLIENT) - add_executable(quasselclient WIN32 common/main.cpp ${COMMON_DEPS} ${CLIENT_DEPS}) + add_executable(quasselclient WIN32 common/main.cpp ${CLIENT_DEPS} ${COMMON_DEPS}) qt_use_modules(quasselclient Core Gui Network ${CLIENT_QT_MODULES}) add_dependencies(quasselclient po) set_target_properties(quasselclient PROPERTIES @@ -55,7 +62,7 @@ if(WANT_QTCLIENT) endif(WANT_QTCLIENT) if(WANT_MONO) - add_executable(quassel WIN32 common/main.cpp qtui/monoapplication.cpp ${COMMON_DEPS} ${CLIENT_DEPS} ${CORE_DEPS}) + add_executable(quassel WIN32 common/main.cpp qtui/monoapplication.cpp ${CLIENT_DEPS} ${CORE_DEPS} ${COMMON_DEPS}) qt_use_modules(quassel Core Gui Network ${CLIENT_QT_MODULES} ${CORE_QT_MODULES}) add_dependencies(quassel po) set_target_properties(quassel PROPERTIES