TDE core libraries
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.
 
 
 
 
 
 

117 lines
2.9 KiB

  1. #################################################
  2. #
  3. # (C) 2010 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. include_directories(
  13. ${TQT_INCLUDE_DIRS}
  14. ${CMAKE_CURRENT_BINARY_DIR}
  15. ${CMAKE_BINARY_DIR}
  16. ${CMAKE_CURRENT_SOURCE_DIR}
  17. ${CMAKE_BINARY_DIR}/tdecore
  18. ${CMAKE_SOURCE_DIR}/tdecore
  19. ${CMAKE_SOURCE_DIR}/tdeio
  20. ${CMAKE_SOURCE_DIR}/tdeio/tdeio
  21. ${CMAKE_SOURCE_DIR}/tdeioslave
  22. ${LIBXML2_INCLUDE_DIRS}
  23. ${LIBXSLT_INCLUDE_DIRS}
  24. )
  25. link_directories(
  26. ${TQT_LIBRARY_DIRS}
  27. )
  28. ##### other data ################################
  29. install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/checkXML DESTINATION ${BIN_INSTALL_DIR} )
  30. install( PROGRAMS move_tdeio_help_cache.sh DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
  31. install( FILES tdeio_help.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
  32. install( FILES help.protocol ghelp.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
  33. file(
  34. COPY
  35. customization docbook
  36. man-template.docbook template.docbook
  37. DESTINATION
  38. ${CMAKE_BINARY_DIR}/ksgmltools2
  39. PATTERN ".svn" EXCLUDE
  40. REGEX "customization/entities/general.entities$" EXCLUDE
  41. )
  42. configure_file(
  43. customization/entities/general.entities
  44. ${CMAKE_BINARY_DIR}/ksgmltools2/customization/entities/general.entities
  45. @ONLY
  46. )
  47. install(
  48. DIRECTORY
  49. ${CMAKE_BINARY_DIR}/ksgmltools2/
  50. DESTINATION
  51. ${DATA_INSTALL_DIR}/ksgmltools2
  52. )
  53. ##### kbzipfilter_dummy ##############################
  54. tde_add_library( kbzipfilter_dummy STATIC_PIC
  55. SOURCES ${CMAKE_SOURCE_DIR}/tdeioslave/bzip2/kbzip2filter.cpp
  56. )
  57. #### tdeio_help ###################################
  58. set( target tdeio_help )
  59. set( ${target}_SRCS
  60. tdeio_help.cpp main.cpp xslt.cpp
  61. )
  62. tde_add_kpart( ${target} SHARED
  63. SOURCES ${${target}_SRCS}
  64. LINK kbzipfilter_dummy-static tdeio-shared ${BZIP2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES}
  65. DESTINATION ${PLUGIN_INSTALL_DIR}
  66. )
  67. #### tdeio_ghelp ###################################
  68. set( target tdeio_ghelp )
  69. set( ${target}_SRCS
  70. tdeio_help.cpp main_ghelp.cpp xslt.cpp
  71. )
  72. tde_add_kpart( ${target} SHARED
  73. SOURCES ${${target}_SRCS}
  74. LINK kbzipfilter_dummy-static tdeio-shared ${BZIP2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES}
  75. DESTINATION ${PLUGIN_INSTALL_DIR}
  76. )
  77. #### meinproc ###################################
  78. set( target meinproc )
  79. set( ${target}_SRCS
  80. meinproc.cpp xslt_pure.cpp
  81. )
  82. # FIXME I think this can be improved
  83. add_custom_command( OUTPUT xslt_pure.cpp COMMAND cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/xslt.cpp xslt_pure.cpp )
  84. set_source_files_properties( xslt_pure.cpp PROPERTIES COMPILE_FLAGS -DSIMPLE_XSLT )
  85. tde_add_executable( ${target}
  86. SOURCES ${${target}_SRCS}
  87. LINK kbzipfilter_dummy-static tdeio-shared ${BZIP2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES}
  88. DESTINATION ${BIN_INSTALL_DIR}
  89. )