TDE base libraries and programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
2.9KB

  1. #################################################
  2. #
  3. # (C) 2010-2011 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. include( ConfigureChecks.cmake )
  12. add_subdirectory( lock )
  13. add_subdirectory( pics )
  14. add_subdirectory( patterns )
  15. add_subdirectory( programs )
  16. add_subdirectory( init )
  17. add_subdirectory( kwebdesktop )
  18. if( NOT BUILD_LIBKONQ )
  19. include( "${TDE_CMAKE_DIR}/libkonq.cmake" )
  20. endif( NOT BUILD_LIBKONQ )
  21. include_directories(
  22. ${CMAKE_CURRENT_BINARY_DIR}
  23. ${CMAKE_CURRENT_SOURCE_DIR}
  24. ${CMAKE_BINARY_DIR}
  25. ${CMAKE_SOURCE_DIR}/tdmlib
  26. ${CMAKE_SOURCE_DIR}/kcontrol/background
  27. ${CMAKE_SOURCE_DIR}/libkonq
  28. ${TDE_INCLUDE_DIR}
  29. ${TQT_INCLUDE_DIRS}
  30. ${DBUS_INCLUDE_DIRS}
  31. ${DBUS_1_TQT_INCLUDE_DIRS}
  32. )
  33. link_directories(
  34. ${TQT_LIBRARY_DIRS}
  35. ${LIBART_LIBRARY_DIRS}
  36. ${DBUS_1_TQT_LIBRARY_DIRS}
  37. )
  38. ##### headers ###################################
  39. install( FILES
  40. KDesktopIface.h KScreensaverIface.h KBackgroundIface.h
  41. DESTINATION ${INCLUDE_INSTALL_DIR} )
  42. ##### other data ################################
  43. configure_file( kdesktop.desktop.cmake kdesktop.desktop @ONLY )
  44. install( FILES ${CMAKE_CURRENT_BINARY_DIR}/kdesktop.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} )
  45. install( FILES kdesktop_custom_menu1 kdesktop_custom_menu2 DESTINATION ${CONFIG_INSTALL_DIR} )
  46. install( FILES kdesktopSetAsBackground.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
  47. install( FILES kdesktop.kcfg tdelaunch.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
  48. ##### kcheckrunning (executable) ################
  49. tde_add_executable( kcheckrunning
  50. SOURCES kcheckrunning.cpp
  51. LINK ${TQT_LIBRARIES} X11
  52. DESTINATION ${BIN_INSTALL_DIR}
  53. )
  54. ##### kxdglauncher (executable) #################
  55. tde_add_executable( kxdglauncher
  56. SOURCES kxdglauncher.cpp
  57. LINK tdeutils-shared
  58. DESTINATION ${BIN_INSTALL_DIR}
  59. )
  60. ##### kdesktop (tdeinit) ########################
  61. set( target kdesktop )
  62. set_source_files_properties( lockeng.cc PROPERTIES COMPILE_FLAGS -DKDE_CONFDIR=\\"${TDE_CONFIG_DIR}\\" )
  63. set( ${target}_SRCS
  64. main.cc krootwm.cc xautolock.cc kdiconview.cc init.cc
  65. desktop.cc lockeng.cc KDesktopIface.skel bgmanager.cc
  66. KScreensaverIface.skel minicli.cpp KBackgroundIface.skel
  67. pixmapserver.cc kcustommenu.cc startupid.cpp minicli_ui.ui
  68. xautolock_diy.c xautolock_engine.c kshadowengine.cpp
  69. kshadowsettings.cpp kdesktopshadowsettings.cpp
  70. tdefileividesktop.cpp kdesktopapp.cpp
  71. )
  72. tde_add_tdeinit_executable( ${target} AUTOMOC
  73. SOURCES ${${target}_SRCS}
  74. LINK
  75. pthread kdesktopsettings-static bgnd-static dmctl-static
  76. konq-shared tdeutils-shared
  77. ${XRENDER_LIBRARIES} ${XCURSOR_LIBRARIES} Xext ${DL_LIBRARIES}
  78. ${XSS_LIBRARIES} ${DBUS_1_TQT_LIBRARIES}
  79. )
  80. ##### kdesktopsettings (static) #################
  81. tde_add_library( kdesktopsettings STATIC_PIC
  82. SOURCES kdesktopsettings.kcfgc tdelaunchsettings.kcfgc
  83. )