X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=icons%2FCMakeLists.txt;h=3eaea88a01ff101285a68609a4794734bf2be225;hp=0fda03ea04eb58269c6c376b372ca511ccd6591a;hb=a4251618e99c35f727c526f8480055d5a9c5e41f;hpb=bb472af43db9b3a3bb02af1d853ae808890a49bb diff --git a/icons/CMakeLists.txt b/icons/CMakeLists.txt index 0fda03ea..3eaea88a 100644 --- a/icons/CMakeLists.txt +++ b/icons/CMakeLists.txt @@ -40,9 +40,17 @@ if(WANT_MONO OR WANT_QTCLIENT) endif(WANT_MONO OR WANT_QTCLIENT) # Application icon -if(NOT APPLE AND NOT WIN32) + +# cmake-2.6.2 can't handle nested conditions +# if((UNIX AND NOT APPLE) OR HAVE_KDE) +if(HAVE_KDE OR UNIX) + if(HAVE_KDE OR NOT APPLE) + install(FILES oxygen_kde/48x48/apps/quassel.png DESTINATION ${ICON_INSTALL_DIR}/hicolor/48x48/apps) if(CMAKE_INSTALL_PREFIX STREQUAL "/usr") install(FILES oxygen_kde/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps) endif(CMAKE_INSTALL_PREFIX STREQUAL "/usr") -endif(NOT APPLE AND NOT WIN32) + +# endif((UNIX AND NOT APPLE) OR HAVE_KDE) + endif(HAVE_KDE OR NOT APPLE) +endif(HAVE_KDE OR UNIX)