Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. project(wicd-kde)
  2.  
  3. find_package( KDE4 REQUIRED )
  4. include_directories( ${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} )
  5.  
  6. macro_ensure_version("4.3.80" ${KDE_VERSION} KSTATUSNOTIFIERITEM_FOUND)
  7. if (NOT PYTHONBIN)
  8. set (PYTHONBIN "python" CACHE STRING "python command")
  9. endif (NOT PYTHONBIN)
  10. configure_file (config-python.h.cmake config-python.h)
  11.  
  12. add_subdirectory( kcm )
  13. add_subdirectory( icons )
  14. add_subdirectory( translations )
  15.  
  16. set(client_SRCS
  17. global.cpp
  18. main.cpp
  19. mainwindow.cpp
  20. networkpanel.cpp
  21. labelentry.cpp
  22. scriptsdialog.cpp
  23. networkpropertiesdialog.cpp
  24. profilemanager.cpp
  25. infosdialog.cpp
  26. networkmodel.cpp
  27. networkitemdelegate.cpp
  28. trayicon.cpp
  29. dbushandler.cpp)
  30.  
  31. kde4_add_ui_files(client_SRCS profilemanager.ui)
  32.  
  33. kde4_add_executable( wicd-kde ${client_SRCS} )
  34. target_link_libraries( wicd-kde ${KDE4_KDEUI_LIBS} )
  35. install( TARGETS wicd-kde ${INSTALL_TARGETS_DEFAULT_ARGS} )
  36.  
  37. kde4_add_executable(wicdclient_scripts_helper scriptshelper.cpp)
  38. target_link_libraries(wicdclient_scripts_helper ${KDE4_KDECORE_LIBS})
  39. install(TARGETS wicdclient_scripts_helper DESTINATION ${LIBEXEC_INSTALL_DIR})
  40.  
  41. kde4_install_auth_actions(org.kde.wicdclient.scripts wicdclient.scripts.actions)
  42. kde4_install_auth_helper_files(wicdclient_scripts_helper org.kde.wicdclient.scripts root)
  43.  
  44. install( FILES wicd-kde.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
  45. install( FILES wicd-kde.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
  46. install( FILES wicd-kde.notifyrc DESTINATION ${DATA_INSTALL_DIR}/wicd-kde )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement