~ubuntu-branches/ubuntu/lucid/kmess/lucid

« back to all changes in this revision

Viewing changes to contrib/isf-qt/src/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-12-05 21:19:26 UTC
  • mfrom: (1.1.7 upstream) (0.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20091205211926-r26u8j38kysf6o2p
Tags: 2.0.2-1
* New upstream release 
  - Fixes friendly names (LP: #485640)
* Update Homepage: http://kmess.org
* Add Build-Depends: libphonon-dev | libqt4-phonon-dev (ubuntu friendly)
* kmess.1 fix lintian:hyphen-used-as-minus-sign

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#### Source files definitions ####
 
3
 
 
4
SET( ISFQT_SOURCES
 
5
     data/algorithms/bitpacking.cpp
 
6
     data/algorithms/bitpacking_byte.cpp
 
7
     data/algorithms/huffman.cpp
 
8
     data/algorithms/deltatransform.cpp
 
9
     data/compression.cpp
 
10
     data/datasource.cpp
 
11
     data/multibytecoding.cpp
 
12
     isfqtdrawing.cpp
 
13
     tagsparser.cpp
 
14
     tagswriter.cpp
 
15
     isfqt.cpp
 
16
     isfinkcanvas.cpp
 
17
   )
 
18
 
 
19
SET( ISFQT_PUBLIC_HEADERS
 
20
     ../include/isfqt.h
 
21
     ../include/isfqtdrawing.h
 
22
     ../include/isfinkcanvas.h
 
23
     ../include/IsfQt
 
24
     ../include/IsfQtDrawing
 
25
     ../include/IsfInkCanvas
 
26
   )
 
27
 
 
28
SET( ISFQT_LIBS
 
29
     ${QT_QTCORE_LIBRARY}
 
30
     ${QT_QTGUI_LIBRARY}
 
31
   )
 
32
 
 
33
SET( ISFQT_RCCS
 
34
     ../data/isfqtresources.qrc
 
35
   )
 
36
 
 
37
IF( GIF_FOUND )
 
38
  INCLUDE_DIRECTORIES( ${GIF_INCLUDE_DIR} )
 
39
  SET( ISFQT_LIBS ${ISFQT_LIBS} ${GIF_LIBRARIES} )
 
40
ENDIF( GIF_FOUND )
 
41
 
 
42
 
 
43
#### Compilation ####
 
44
 
 
45
QT4_WRAP_CPP( MOC_SRCS ../include/isfinkcanvas.h )
 
46
 
 
47
QT4_ADD_RESOURCES( ISFQT_RCC_SRCS ${ISFQT_RCCS} )
 
48
 
 
49
INCLUDE_DIRECTORIES( ${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} )
 
50
 
 
51
# Do not install the library if we're bundling it in KMess
 
52
IF( NOT USE_BUNDLED_LIBRARIES MATCHES "ISFQT" )
 
53
  ADD_LIBRARY( isf-qt SHARED ${ISFQT_SOURCES} ${MOC_SRCS} ${ISFQT_RCC_SRCS} )
 
54
ELSE()
 
55
  ADD_LIBRARY( isf-qt STATIC ${ISFQT_SOURCES} ${MOC_SRCS} ${ISFQT_RCC_SRCS} )
 
56
ENDIF()
 
57
 
 
58
TARGET_LINK_LIBRARIES( isf-qt ${ISFQT_LIBS} )
 
59
 
 
60
SET_TARGET_PROPERTIES( isf-qt PROPERTIES
 
61
                              VERSION    ${ISFQT_VERSION}
 
62
                              SOVERSION  ${ISFQT_VERSION} )
 
63
 
 
64
#### Installation ####
 
65
 
 
66
# Do not install the library if we're bundling it in KMess
 
67
IF( NOT USE_BUNDLED_LIBRARIES MATCHES "ISFQT" )
 
68
  INSTALL( TARGETS isf-qt LIBRARY
 
69
          DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"            )
 
70
  INSTALL( FILES ${ISFQT_PUBLIC_HEADERS}
 
71
          DESTINATION "${CMAKE_INSTALL_PREFIX}/include/isf-qt" )
 
72
ENDIF()