~ubuntu-branches/ubuntu/raring/ktorrent/raring

« back to all changes in this revision

Viewing changes to plugins/shutdown/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-14 09:16:32 UTC
  • mfrom: (1.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101214091632-4l1c6q0ynhm0tcgd
Tags: 4.0.4-0ubuntu3
* Make sure ktorrent compiles and works with new solid powermanagement API
  introduced in KDE 4.6beta2 (4.5.85)
  - Cherry pick from ktorrent git: 34b12bc53bf5826318623f6ae72c238eac5fc886    

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
        #kde4_add_kcfg_files(ktshutdownplugin_SRC logviewerpluginsettings.kcfgc)
15
15
        kde4_add_plugin(ktshutdownplugin ${ktshutdownplugin_SRC})
16
16
        
17
 
        target_link_libraries(
18
 
                ktshutdownplugin
19
 
                ktcore
20
 
                ${LIBKTORRENT_LIBRARIES}
21
 
                solidcontrol
22
 
                kworkspace
23
 
                ${KDE4_KPARTS_LIBS}
24
 
                )
 
17
        set(NEW_SOLID_POWERMANAGEMENT FALSE)
 
18
        macro_ensure_version("4.5.82" ${KDE_VERSION} NEW_SOLID_POWERMANAGEMENT)
 
19
        
 
20
        if (NEW_SOLID_POWERMANAGEMENT)
 
21
                target_link_libraries(
 
22
                        ktshutdownplugin
 
23
                        ktcore
 
24
                        ${LIBKTORRENT_LIBRARIES}
 
25
                        ${KDE4_SOLID_LIBS}
 
26
                        kworkspace
 
27
                        ${KDE4_KPARTS_LIBS})
 
28
        else (NEW_SOLID_POWERMANAGEMENT)
 
29
                target_link_libraries(
 
30
                        ktshutdownplugin
 
31
                        ktcore
 
32
                        ${LIBKTORRENT_LIBRARIES}
 
33
                        solidcontrol
 
34
                        kworkspace
 
35
                        ${KDE4_KPARTS_LIBS})
 
36
        endif (NEW_SOLID_POWERMANAGEMENT)
25
37
        install(TARGETS ktshutdownplugin  DESTINATION ${PLUGIN_INSTALL_DIR} )
26
38
        install(FILES ktshutdownplugin.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )
27
39
        install(FILES ktshutdownpluginui.rc DESTINATION ${DATA_INSTALL_DIR}/ktorrent )