~ubuntu-branches/ubuntu/natty/kadu/natty

« back to all changes in this revision

Viewing changes to externalmodules/mx610_notify/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Kiszel Kristóf
  • Date: 2010-07-21 15:24:54 UTC
  • mfrom: (0.6.1) (0.5.1) (1.4.1) (22.1.2 maverick)
  • Revision ID: package-import@ubuntu.com-20100721152454-vttqle18lovfudni
Tags: 0.6.5.4.ds1-3ubuntu2
Remove libqt4-webkit-dev from build-depends and add
libqtwebkit-dev for qtwebkit transition

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set (SOURCES
 
2
        mx610_notify.cpp)
 
3
 
 
4
set (MOC_SOURCES
 
5
        mx610_notify.h)
 
6
 
 
7
set (TRANSLATION_SOURCES
 
8
        translations/mx610_notify_pl.ts)
 
9
 
 
10
set (CONFIGURATION_FILES
 
11
        configuration/mx610_notify.ui)
 
12
 
 
13
kadu_module_desc (mx610_notify.desc)
 
14
kadu_module_configuration(${CONFIGURATION_FILES})
 
15
qt_wrap_cpp (mx610_notify MOC_FILES ${MOC_SOURCES})
 
16
 
 
17
qt4_add_translation (TRANSLATION_FILES ${TRANSLATION_SOURCES})
 
18
 
 
19
install (FILES ${TRANSLATION_FILES}
 
20
        DESTINATION "share/kadu/modules/translations")
 
21
 
 
22
if (COMMAND cmake_policy)
 
23
        cmake_policy(SET CMP0003 NEW)
 
24
endif (COMMAND cmake_policy)
 
25
 
 
26
add_library (mx610_notify ${mx610_notify} ${SOURCES} ${MOC_FILES})
 
27
add_custom_target (mx610_notify-translations DEPENDS ${TRANSLATION_FILES})
 
28
add_dependencies (mx610_notify mx610_notify-translations)
 
29
if (mx610_notify STREQUAL STATIC)
 
30
        set_target_properties(mx610_notify PROPERTIES COMPILE_FLAGS "-DKADULIB" )
 
31
else (mx610_notify STREQUAL STATIC)
 
32
        if (WIN32)
 
33
                target_link_libraries(mx610_notify kadu_core)
 
34
        endif (WIN32)
 
35
        if (APPLE)
 
36
                set_target_properties(mx610_notify PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
 
37
        endif (APPLE)
 
38
        install (TARGETS mx610_notify DESTINATION ${MODULEDIR})
 
39
endif (mx610_notify STREQUAL STATIC)
 
40