~ubuntu-branches/ubuntu/jaunty/quassel/jaunty

« back to all changes in this revision

Viewing changes to icons/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2008-11-17 15:22:46 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081117152246-3lwlpnr4r08910kv
Tags: 0.3.1-0ubuntu1
* New upstream release (LP: #271403)
* Drop all patches originated from upstream (quassel_*)
* Compile with non-builtin quassel icons
  + Introduce new quassel-data package
  + quassel and quassel-client depend on quassel-data
  + Don't manually enforce icon installation for desktop files in debian/rules
  + Add quassel_01_fix_iconloader.patch
* Drop perl build dependency, I have no clue why it was added in the first
  place. Neither changelog nor Bazaar knows, and since quassel compiles just
  fine without it, removing it should be save.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Build and/or install icons according to global settings
 
2
 
 
3
if(QUASSEL_ICONS MATCHES "External")
 
4
  install(DIRECTORY hicolor DESTINATION ${ICON_INSTALL_DIR})
 
5
else(QUASSEL_ICONS MATCHES "External")
 
6
  qt4_add_resources(RC_ICONS hicolor.qrc)
 
7
endif(QUASSEL_ICONS MATCHES "External")
 
8
 
 
9
if(OXYGEN_ICONS MATCHES "Builtin")
 
10
  qt4_add_resources(RC_ICONS oxygen.qrc)
 
11
endif(OXYGEN_ICONS MATCHES "Builtin")
 
12
 
 
13
# Application icon
 
14
if(NOT APPLE AND NOT WIN32)
 
15
  install(FILES hicolor/48x48/apps/quassel.png DESTINATION ${ICON_INSTALL_DIR}/hicolor/48x48/apps)
 
16
  if(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
 
17
    install(FILES hicolor/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps)
 
18
  endif(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
 
19
endif(NOT APPLE AND NOT WIN32)
 
20
 
 
21
add_custom_target(icons DEPENDS ${RC_ICONS})